/* ==========================================================
   Clínica de Venas Dr. Nery Orozco
   Paleta corporativa: azul marino + dorado (tomados del logo)
   ========================================================== */

:root {
  --navy: #142a40;
  --navy-deep: #0d1d2e;
  --navy-soft: #2b4560;
  --gold: #a8833b;
  --gold-text: #8a6a2c;        /* dorado con contraste suficiente para texto pequeño */
  --gold-light: #d0b361;
  --gold-pale: #f6f0e2;
  --mist: #f2f5f8;             /* fondo frío muy claro, como el mockup */
  --mist-2: #e6ecf2;
  --ink: #1a2633;
  --muted: #5d6976;
  --line: #e3e8ee;
  --white: #fff;

  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px -18px rgba(20, 42, 64, .22);
  --shadow-sm: 0 6px 18px -10px rgba(20, 42, 64, .25);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }
em { font-style: normal; }

/* Acento tipográfico: palabra clave en itálica dorada dentro de los títulos */
h1 em, h2 em, .highlight__text em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-text);
  letter-spacing: -.01em;
}
.section-title--light em,
.cta h2 em,
.highlight__text em { color: var(--gold-light); }
button { font: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--fluid { max-width: none; padding-inline: clamp(16px, 3vw, 48px); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow--light { color: var(--gold-light); }

.section-title,
.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -.028em;
  color: var(--navy);
}
.page-title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; }
.section-title--light { color: var(--white); }

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.section-head__text { color: var(--muted); max-width: 460px; justify-self: end; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center .section-head__text { justify-self: center; max-width: 620px; font-size: 17px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  border: 1.5px solid transparent;
  border-radius: 999px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 11px 20px; font-size: 14.5px; }

.btn--navy { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-text); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-text);
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.link-underline {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s;
}
.link-underline:hover { color: var(--gold-text); }
.link-underline--light { color: var(--white); }
.link-underline--light:hover { color: var(--gold-light); }

/* Ícono dentro de círculo (franja de confianza, rasgos del doctor) */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-circle svg,
.feat-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
   ENCABEZADO
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Logo a la izquierda · enlaces al centro · botones a la derecha */
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; height: 110px; }
.header__logo { justify-self: start; }
.header__logo img { width: 280px; }

.nav { display: flex; gap: 28px; }
.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  padding-block: 8px;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { font-weight: 800; }

.header__actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.header__actions .btn { white-space: nowrap; }

/* Pantallas medianas: logo y separaciones más compactos para que todo quepa en una línea */
@media (max-width: 1439px) {
  .header__inner { gap: 20px; }
  .header__logo img { width: 230px; }
  .nav { gap: 22px; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================
   HERO (inicio)
   ========================================================== */
.hero {
  position: relative;
  /* Foto del consultorio de fondo, cubierta por un velo blanco para que apenas se perciba */
  background:
    linear-gradient(100deg, rgba(247, 249, 251, .94) 0%, rgba(238, 242, 246, .88) 50%, rgba(229, 235, 241, .82) 100%),
    url("../assets/img/fondo-banner.jpg") center / cover no-repeat,
    #eef2f6;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
  min-height: 560px;
}
.hero__copy { padding-block: clamp(56px, 7vw, 96px); }
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--navy);
  margin-bottom: 22px;
}
/* Eslogan "¡Tratamos tus venas!" (inicio y pie) */
.slogan { font-family: var(--font-head); font-style: italic; font-weight: 600; letter-spacing: -.01em; color: var(--gold-text); }
.hero__slogan { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: -6px 0 18px; }
.footer__slogan { font-size: 21px; color: var(--gold-light); margin-bottom: 12px; }
.hero__lead { font-size: clamp(17px, 1.35vw, 19px); color: #3d4b59; max-width: 480px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero__visual::before {
  /* círculo de fondo detrás del doctor */
  content: "";
  position: absolute;
  width: min(520px, 95%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #dfe6ee 70%);
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__visual::after {
  content: "";
  position: absolute;
  width: min(580px, 105%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(168, 131, 59, .35);
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__doctor { position: relative; z-index: 1; width: min(400px, 74%); }

.clinic-card {
  position: absolute;
  right: 0;
  bottom: 28px;
  z-index: 2;
  width: min(320px, 92%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.clinic-card__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.clinic-card__title svg { width: 20px; height: 20px; fill: var(--gold); }
.clinic-card__row > div { display: flex; gap: 10px; }
.clinic-card__row svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.4; margin-top: 2px; }
.clinic-card strong { display: block; font-size: 13.5px; color: var(--navy); line-height: 1.3; }
.clinic-card span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }

/* ==========================================================
   CONFIANZA
   ========================================================== */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust__item { display: flex; align-items: flex-start; gap: 16px; padding: 30px 24px; }
.trust__item:first-child { padding-left: 0; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item h3 { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 4px; }
.trust__item p { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ==========================================================
   TRATAMIENTOS (tarjetas con foto)
   ========================================================== */
.treatments { background: var(--mist); }
.treatments__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px clamp(22px, 2.6vw, 36px); }

/* Tarjeta de tratamiento sin caja: foto alta, número grande difuminado, título, línea y botón */
.t-card { display: flex; flex-direction: column; }
.t-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--mist-2); }
.t-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.t-card:hover .t-card__media img { transform: scale(1.05); }
.t-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 34px; }
.t-card__kicker {
  position: relative;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 18px;
}
.t-card__num {
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-58%);
  z-index: -1;
  font-family: var(--font-head);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--navy);
  opacity: .07;
  pointer-events: none;
}
.t-card__body { isolation: isolate; }
.t-card h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(23px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -.015em; color: var(--navy); }
.t-card h3::after { content: ""; display: block; width: 56px; height: 1.5px; background: var(--gold); margin: 20px 0 22px; transition: width .4s var(--ease); }
.t-card:hover h3::after { width: 88px; }
.t-card__text { font-size: 15px; line-height: 1.75; color: var(--muted); margin-bottom: 28px; }
.t-card__btn {
  position: relative;
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  padding: 11px 38px 11px 18px;
  margin-right: 16px;
  border: 1.5px solid var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.t-card__btn-icon {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.t-card__btn-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.t-card__btn:hover { background: var(--navy); color: var(--white); }
.t-card__btn:hover .t-card__btn-icon { transform: translate(4px, -50%); }

/* ==========================================================
   TECNOLOGÍA (banda azul)
   ========================================================== */
.tech { background: var(--navy); color: rgba(255, 255, 255, .75); padding-block: var(--section); }
.tech__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.tech__intro .section-title { margin-bottom: 20px; }
.tech__intro p { max-width: 420px; margin-bottom: 28px; }
.tech__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tech__list li {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .25s, border-color .25s;
}
.tech__list li:hover { background: rgba(255, 255, 255, .08); border-color: rgba(208, 179, 97, .45); }
.tech__list li span { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--white); }
.tech__list li small { font-size: 13.5px; color: var(--gold-light); }
.tech__note { color: rgba(255, 255, 255, .7); }

/* ==========================================================
   DOCTOR (inicio)
   ========================================================== */
.doctor__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.doctor__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 5.4;
  background: linear-gradient(160deg, #f4f6f9 0%, #e3e9f0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.doctor__photo::before {
  /* marca de agua con el isotipo dorado */
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  top: 9%;
  right: 6%;
  background: url("../assets/img/favicon.png") center / contain no-repeat;
  opacity: .16;
}
.doctor__photo img { position: relative; width: 78%; }
.doctor__role { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 20px; color: var(--gold-text); margin: 6px 0 20px; }
.doctor__text { color: #3d4b59; margin-bottom: 30px; max-width: 560px; }
.doctor__features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-bottom: 34px; }
.doctor__features li { display: flex; gap: 14px; }
.doctor__features h3 { font-size: 15.5px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.doctor__features p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ==========================================================
   TESTIMONIOS
   ========================================================== */
.testimonials { background: var(--mist); }
.testimonials__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: var(--white);
  padding: 32px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0; font-family: var(--font-head); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink); }
.quote blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-head);
  font-size: 56px;
  line-height: .8;
  color: var(--gold);
  margin-bottom: 6px;
}
.quote--featured { background: var(--navy); }
.quote--featured blockquote { color: var(--white); font-size: 20px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.quote figcaption strong { display: block; font-size: 15px; color: var(--navy); }
.quote--featured figcaption span { color: rgba(255, 255, 255, .65); }
.quote--featured figcaption strong { color: var(--gold-light); }

/* ==========================================================
   CLÍNICAS (inicio)
   ========================================================== */
.clinics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.clinic {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.clinic__zone {
  display: inline-block;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: var(--gold-pale);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.clinic h3 { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.15; margin-bottom: 8px; }
.clinic__address { color: var(--muted); max-width: 380px; margin-bottom: 14px; }
.clinic__phone { display: inline-block; font-weight: 600; color: var(--navy); font-size: 18px; margin-bottom: 24px; }
.clinic__phone:hover { color: var(--gold-text); }
.clinic__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.clinic__map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--mist-2); }
.clinic__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ==========================================================
   CTA
   ========================================================== */
.cta { padding-block: clamp(48px, 6vw, 72px); background: var(--white); }
.cta__inner {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--navy);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.cta__inner::after {
  content: "";
  position: absolute;
  width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(208, 179, 97, .35);
  right: -90px;
  top: -150px;
}
.cta h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; letter-spacing: -.015em; color: var(--white); }
.cta__actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; justify-self: end; }
.cta__actions .link-underline { font-weight: 500; font-size: 14px; word-break: break-all; }

/* Variante clara (página del doctor): mismo CTA, sin caja azul, sobre fondo blanco */
.cta--claro { padding-block: clamp(56px, 7vw, 88px); }
.cta--claro .cta__inner { background: none; border-radius: 0; padding-inline: 0; overflow: visible; }
.cta--claro .cta__inner::after { display: none; }
.cta--claro h2 { color: var(--navy); }
.cta--claro h2 em { color: var(--gold-text); }

/* ==========================================================
   PIE
   ========================================================== */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .65); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-block: 64px 48px; }
.footer__brand img { width: 220px; margin-bottom: 18px; }
.footer__brand p { max-width: 340px; margin-bottom: 22px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(208, 179, 97, .35);
  color: var(--gold-light);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer__social svg { width: 22px; height: 22px; fill: currentColor; }
.footer__social svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__social svg .dot { fill: currentColor; stroke: none; }
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.footer h4 { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--white); padding-bottom: 12px; margin-bottom: 18px; }
/* Línea decorativa dorada bajo los títulos del pie */
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 2px; background: var(--gold); }
.footer ul { display: grid; gap: 10px; }
/* Cada enlace con una flechita dorada */
.footer ul a { display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.footer ul a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.footer ul a:hover { color: var(--white); }
.footer ul a:hover::before { border-color: var(--gold-light); transform: translateX(3px) rotate(45deg); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer__bottom a:hover { color: var(--gold-light); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform .25s var(--ease);
}
.wa-float::before {
  /* pulso suave para llamar la atención */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
/* Logo oficial de WhatsApp (assets/img/icono-whatsapp.png) */
.wa-float img { width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(18, 140, 70, .35)); }

/* ==========================================================
   VIDEOS
   ========================================================== */
.video {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.video:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}
.video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--navy);
  display: block;
}
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .92; }
.video__play::after {
  /* botón de reproducir */
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 42, 64, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7.5v9l7.5-4.5z' fill='%23fff'/%3E%3C/svg%3E") center / 30px no-repeat;
  border: 2px solid var(--gold-light);
  transition: transform .3s var(--ease), background-color .3s;
}
.video:hover .video__play img { transform: scale(1.04); opacity: 1; }
.video:hover .video__play::after { transform: translate(-50%, -50%) scale(1.08); background-color: var(--gold); }
.video__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.video__badge--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d93a2b; }
.video__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video__cat { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.video__body h3 { font-family: var(--font-head); font-weight: 700; font-size: 18.5px; line-height: 1.3; color: var(--navy); }
.video__body .link-arrow { margin-top: 8px; font-size: 14px; }

.videos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video[hidden] { display: none; }

.video-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.video-featured .video { box-shadow: var(--shadow); }
.video-featured .video:hover { transform: none; }
.video-featured__text h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin-bottom: 14px; }
.video-featured__text p { color: #3d4b59; margin-bottom: 24px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.channel-cta {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--gold-pale);
}
.channel-cta h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--navy); }
.channel-cta p { color: var(--muted); font-size: 15px; }

/* ==========================================================
   PÁGINAS INTERNAS
   ========================================================== */
.page-hero {
  background: linear-gradient(100deg, #f7f9fb 0%, #eef2f6 60%, #e7ecf2 100%);
  padding-block: clamp(36px, 5vw, 56px) clamp(48px, 6vw, 72px);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: clamp(28px, 4vw, 44px); }
.breadcrumb a { color: var(--navy); font-weight: 500; }
.breadcrumb a:hover { color: var(--gold-text); }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 64px; align-items: end; }
.page-hero__lead { color: #3d4b59; font-size: 17.5px; max-width: 480px; justify-self: end; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jump a {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: border-color .2s, color .2s;
}
.jump a:hover { border-color: var(--gold); color: var(--gold-text); }

/* ----- Dr. Nery Orozco ----- */
.doc-hero { background: linear-gradient(100deg, #f7f9fb 0%, #eef2f6 60%, #e5ebf1 100%); overflow: hidden; }
.doc-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.doc-hero__copy { padding-block: clamp(36px, 5vw, 56px) clamp(48px, 6vw, 80px); }
.doc-hero__role { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 20px; color: var(--gold-text); margin: 10px 0 18px; }
.doc-hero__lead { color: #3d4b59; font-size: 17.5px; max-width: 520px; margin-bottom: 36px; }
/* Cifras del doctor (sección bajo la trayectoria): sin caja, con ícono y separadas por líneas finas */
.doc-facts-band { padding-bottom: clamp(56px, 7vw, 88px); }
.doc-facts-band .doc-facts { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 56px); }
.doc-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.doc-facts div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px clamp(20px, 4vw, 48px); }
.doc-facts div + div { border-left: 1px solid rgba(168, 131, 59, .28); }
.doc-facts .icon-circle { width: 46px; height: 46px; margin-bottom: 16px; }
.doc-facts .icon-circle svg { width: 22px; height: 22px; }
.doc-facts dt { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.02em; color: var(--navy); margin-bottom: 8px; }
.doc-facts dd { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 260px; text-wrap: balance; }
.doc-hero__visual { position: relative; display: flex; align-items: flex-end; justify-content: center; padding-top: clamp(28px, 3.5vw, 48px); }
.doc-hero__visual::before {
  content: "";
  position: absolute;
  width: min(460px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #dbe3ec 70%);
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.doc-hero__panel { display: flex; justify-content: center; width: 100%; }
.doc-hero__visual img { position: relative; width: min(380px, 80%); }

.bio__grid { display: grid; grid-template-columns: .75fr 1.5fr; gap: clamp(32px, 6vw, 80px); }
.bio__aside { position: sticky; top: 120px; align-self: start; }
.bio__lead { font-size: 17px; color: #3d4b59; margin-top: 22px; max-width: 360px; }

/* Línea de tiempo: línea vertical dorada con marcadores cuadrados; lugar + título | descripción */
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 0; width: 1.5px; background: var(--gold); }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px clamp(24px, 4vw, 56px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
}
.timeline li:last-child { padding-bottom: 8px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--white);
}
.timeline__place { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; color: var(--gold-text); margin-bottom: 10px; }
.timeline h3 { font-family: var(--font-head); font-size: clamp(20px, 1.7vw, 23px); font-weight: 700; line-height: 1.3; color: var(--navy); }
.timeline p { font-size: 15px; line-height: 1.75; color: var(--muted); padding-top: 2px; }

.highlight { background: var(--navy); padding-block: clamp(48px, 6vw, 72px); }
.highlight__text { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; color: var(--white); max-width: 900px; }


.members { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }  /* todas las filas igual de altas */
.members li {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
.members span { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.members small { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ----- Tratamientos ----- */
/* Separación amplia entre tratamientos, con una línea fina a la mitad */
.conditions .container { display: grid; gap: clamp(56px, 7vw, 96px); }
.condition + .condition { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.condition { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; scroll-margin-top: 110px; }
.condition--reverse .condition__media { order: 2; }
.condition__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist-2); }
.condition__media img { width: 100%; height: 100%; object-fit: cover; }
.condition__media { position: relative; }
/* Mensaje sobre la foto (trombosis, úlceras) */
.condition__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 24px 20px;
  background: linear-gradient(to top, rgba(13, 29, 46, .85) 0%, rgba(13, 29, 46, 0) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.condition__icon {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}
.condition__icon svg { width: 96px; height: 96px; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.condition__icon svg .accent { stroke: var(--gold-light); }
.condition__icon span { color: rgba(255, 255, 255, .8); max-width: 300px; font-size: 15px; }
.condition__num { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--gold-text); background: var(--gold-pale); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.condition h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; color: var(--navy); margin-bottom: 12px; }
.condition__intro { color: #3d4b59; font-size: 17px; margin-bottom: 26px; }
.condition__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.condition__cols h3 { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23a8833b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.tech-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tech-cards article {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.tech-cards span { display: block; font-weight: 700; font-size: 13px; color: var(--gold-light); margin-bottom: 14px; }
.tech-cards h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--white); margin-bottom: 8px; }
.tech-cards p { font-size: 14.5px; color: rgba(255, 255, 255, .68); }
.tech-cards .tech-cards__cta { background: var(--gold); border-color: var(--gold); display: flex; flex-direction: column; align-items: flex-start; }
.tech-cards__cta p { color: rgba(255, 255, 255, .9); margin-bottom: 18px; }
.tech-cards__cta .btn { margin-top: auto; background: var(--white); color: var(--navy); }
.tech-cards__cta .btn:hover { background: var(--navy); color: var(--white); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--mist); }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 12px;
}
.steps h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }

/* ----- Clínicas ----- */
.locations .container { display: grid; gap: 28px; }
.location {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 110px;
}
.location--reverse .location__map { order: 2; }
.location__map { min-height: 400px; background: var(--mist-2); }
.location__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
.location__info { padding: clamp(28px, 4vw, 48px); }
.location__info h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); color: var(--navy); margin-bottom: 22px; }
.location__list { display: grid; gap: 14px; margin-bottom: 30px; }
.location__list div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.location__list dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); padding-top: 2px; }
.location__list dd { color: var(--ink); }
.location__list a { font-weight: 600; color: var(--navy); }
.location__list a:hover { color: var(--gold-text); }

/* ----- Contacto ----- */
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #c0392b; }
.form__error { color: #b03224; font-size: 14px; font-weight: 500; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form__note { font-size: 13.5px; color: var(--muted); }

.contact__aside { display: grid; gap: 14px; }
.contact__block { background: var(--mist); border-radius: var(--radius); padding: 22px 24px; }
.contact__block h2,
.contact__block h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.contact__block p { font-size: 14.5px; color: var(--muted); }
.contact__block a { font-weight: 600; color: var(--navy); }
.contact__block a:hover { color: var(--gold-text); }
.contact__big { display: inline-block; font-family: var(--font-head); font-size: 30px; margin: 4px 0 2px; }
.contact__block:first-child { background: var(--navy); }
.contact__block:first-child h2 { color: var(--gold-light); font-size: 15px; }
.contact__block:first-child a { color: var(--white); }
.contact__block:first-child p { color: rgba(255, 255, 255, .65); }
.contact__mail { font-size: 14px; word-break: break-all; }
.contact__aside > .link-underline { justify-self: start; margin-top: 6px; }

/* ----- Blog ----- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--gold-text); font-weight: 600; margin-bottom: 8px; }
.post-card h2 { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--navy); margin-bottom: 10px; }
.post-card h2 a:hover { color: var(--gold-text); }
.post-card p:not(.post-card__meta) { color: var(--muted); margin-bottom: 18px; }
.post-card .link-arrow { margin-top: auto; }
.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__img { flex: 1.1; aspect-ratio: auto; min-height: 320px; }
.post-card--featured .post-card__body { flex: 1; justify-content: center; padding: clamp(28px, 4vw, 48px); }
.post-card--featured h2 { font-size: clamp(26px, 2.6vw, 34px); }

.article__head { background: linear-gradient(100deg, #f7f9fb 0%, #eef2f6 60%, #e7ecf2 100%); padding-block: clamp(32px, 5vw, 52px) 120px; }
.article__byline { margin-top: 14px; color: var(--muted); font-size: 15px; }
.article__cover { max-width: 1000px; margin-top: -88px; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); padding-block: clamp(40px, 5vw, 64px) var(--section); }
.article__content { max-width: 700px; font-size: 17.5px; line-height: 1.75; color: #33414f; }
.article__content h2 { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); margin: 40px 0 12px; }
.article__content p + p { margin-top: 16px; }
.article__lead { font-size: 20px; line-height: 1.6; color: var(--navy); padding-left: 20px; border-left: 3px solid var(--gold); }
.article__disclaimer { margin-top: 40px !important; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--mist); font-size: 14.5px; color: var(--muted); }
.article__aside { display: grid; gap: 20px; align-content: start; position: sticky; top: 110px; align-self: start; }
.aside-cta { background: var(--navy); color: rgba(255, 255, 255, .75); border-radius: var(--radius); padding: 26px; }
.aside-cta h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--white); margin-bottom: 8px; }
.aside-cta p:not(.eyebrow) { font-size: 15px; margin-bottom: 18px; }
.aside-more h3 { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 12px; }
.aside-more ul { display: grid; gap: 12px; }
.aside-more a { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--navy); }
.aside-more a:hover { color: var(--gold-text); }


/* ----- Blog: portadas ilustradas ----- */
.cover {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.cover::before,
.cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.cover::before { width: 70%; aspect-ratio: 1; right: -18%; top: -30%; }
.cover::after { width: 46%; aspect-ratio: 1; left: -12%; bottom: -26%; }
.cover svg { width: 34%; max-width: 150px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.cover__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cover--big { min-height: 340px; }
.cover--big svg { max-width: 190px; }

.cover--navy { background: var(--navy); }
.cover--navy::before { background: rgba(255, 255, 255, .05); }
.cover--navy::after { border: 1px solid rgba(208, 179, 97, .4); }
.cover--navy svg { stroke: rgba(255, 255, 255, .9); }
.cover--navy svg .accent { stroke: var(--gold-light); }
.cover--navy .cover__tag { background: var(--gold); color: var(--white); }

.cover--gold { background: linear-gradient(135deg, #f6ecd4 0%, #e9d7ab 100%); }
.cover--gold::before { background: rgba(255, 255, 255, .45); }
.cover--gold::after { border: 1px solid rgba(20, 42, 64, .18); }
.cover--gold svg { stroke: var(--navy); }
.cover--gold svg .accent { stroke: var(--gold-text); }
.cover--gold .cover__tag { background: var(--navy); color: var(--white); }

.cover--mist { background: linear-gradient(135deg, #eef2f6 0%, #d9e2ec 100%); }
.cover--mist::before { background: rgba(255, 255, 255, .6); }
.cover--mist::after { border: 1px solid rgba(168, 131, 59, .45); }
.cover--mist svg { stroke: var(--navy); }
.cover--mist svg .accent { stroke: var(--gold); }
.cover--mist .cover__tag { background: var(--white); color: var(--navy); }

.post-card:hover .cover svg { transform: scale(1.06) rotate(-2deg); }
.post-card[hidden] { display: none; }
.post-card--featured { margin-bottom: clamp(40px, 5vw, 56px); }
.post-card--featured .btn { align-self: flex-start; margin-top: 8px; }

.mini-cover { width: 64px; height: 52px; border-radius: 8px; display: grid; place-items: center; }
.mini-cover svg { width: 30px; height: 30px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-cover--navy { background: var(--navy); }
.mini-cover--navy svg { stroke: var(--white); }
.mini-cover--gold { background: #efe1bf; }
.mini-cover--gold svg,
.mini-cover--mist svg { stroke: var(--navy); }
.mini-cover--mist { background: var(--mist-2); }
.aside-more a { grid-template-columns: 64px 1fr; }

/* ----- Blog: lectura ----- */
.read-progress { position: sticky; top: 84px; z-index: 40; height: 3px; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--gold); }

.article__cover .cover { border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.article__content h2 { scroll-margin-top: 110px; }
.article__content strong { color: var(--navy); }
.article__content ul.ticks,
.article__content ol { margin-top: 14px; }
.article__content ul.ticks li { font-size: 16.5px; }

.toc { border-left: 2px solid var(--line); padding-left: 18px; }
.toc__title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.toc ol { display: grid; gap: 8px; }
.toc a { font-size: 14.5px; color: var(--muted); line-height: 1.35; display: block; transition: color .2s; }
.toc a:hover,
.toc a.is-current { color: var(--gold-text); }
.toc a.is-current { font-weight: 600; }

.signal-list { counter-reset: sig; display: grid; gap: 10px; margin-bottom: 22px; }
.signal-list li {
  counter-increment: sig;
  position: relative;
  padding: 14px 16px 14px 58px;
  background: var(--mist);
  border-radius: var(--radius-sm);
  font-size: 16.5px;
  line-height: 1.5;
}
.signal-list li::before {
  content: counter(sig);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.callout { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius); font-size: 16.5px; }
.callout ul { margin: 8px 0 10px; padding-left: 20px; list-style: disc; }
.callout li { margin-bottom: 4px; }
.callout__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.callout--alert { background: #fdf0ee; border-left: 4px solid #c0392b; }
.callout--alert .callout__title { color: #9b2c20; }
.callout--tip { background: var(--gold-pale); border-left: 4px solid var(--gold); }
.callout--tip .callout__title { color: var(--navy); }

.quiz {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
}
.quiz__title { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--white); }
.quiz .quiz__sub { font-size: 15px; margin: 2px 0 18px; }
.quiz__list { display: grid; gap: 8px; }
.quiz__list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.quiz__list label:hover { background: rgba(255, 255, 255, .1); }
.quiz__list input { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; }
.quiz__list label:has(input:checked) { border-color: var(--gold-light); background: rgba(208, 179, 97, .14); }
.quiz__result { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-size: 16px; }
.quiz__result a { color: var(--gold-text); font-weight: 600; text-decoration: underline; }
.quiz .quiz__note { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .55); }

.risk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.risk-grid div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--mist); }
.risk-grid strong { display: block; font-size: 16px; }
.risk-grid span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

.habit-list { counter-reset: hab; display: grid; gap: 14px; }
.habit-list li { counter-increment: hab; position: relative; padding: 18px 20px 18px 70px; border: 1px solid var(--line); border-radius: var(--radius); }
.habit-list li::before {
  content: counter(hab);
  position: absolute;
  left: 22px;
  top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}
.habit-list h3 { font-family: var(--font-head); font-weight: 700; font-size: 18.5px; color: var(--navy); margin-bottom: 4px; }
.habit-list p { font-size: 15.5px; line-height: 1.55; }

.exercise { margin: 16px 0; padding: 22px; border-radius: var(--radius); background: var(--gold-pale); }
.exercise__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.exercise__steps div { background: var(--white); border-radius: var(--radius-sm); padding: 14px; }
.exercise__steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.exercise__steps p { font-size: 14.5px; line-height: 1.45; }

.myths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.myth { padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.myth__tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.myth--false .myth__tag { background: #fbe9e6; color: #9b2c20; }
.myth--true .myth__tag { background: #e4f3ea; color: #23683f; }
.myth--half .myth__tag { background: var(--gold-pale); color: var(--gold-text); }
.myth h3 { font-family: var(--font-head); font-weight: 700; font-size: 17.5px; line-height: 1.3; color: var(--navy); margin-bottom: 6px; }
.article__content .myth p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.steps--compact { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.steps--compact li::before { font-size: 24px; margin-bottom: 6px; }
.steps--compact p { line-height: 1.5; }

.question-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.article__content .question-cards p { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--mist); font-weight: 600; color: var(--navy); font-size: 15.5px; line-height: 1.4; }

.summary { margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--mist); }
.summary__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.summary .ticks li { font-size: 16px; color: var(--ink); }

.next-post {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.next-post:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.next-post span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.next-post strong { grid-column: 1; font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3; }
.next-post svg { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .risk-grid,
  .myths,
  .steps--compact,
  .question-cards { grid-template-columns: 1fr; }
  .exercise__steps { grid-template-columns: 1fr 1fr; }
  .cover--big { min-height: 220px; }
  .read-progress { top: 72px; }
}


/* ==========================================================
   EXTRAS DEL INICIO: cifras, chequeo express, FAQ, agenda
   ========================================================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(208, 179, 97, .16);
  color: var(--gold-light);
  margin-bottom: 18px;
}
.pill-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-badge--light { background: var(--gold-pale); color: var(--gold-text); }

/* Menú: enlace destacado */
.nav a.nav__express { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-weight: 600; }
.nav__express svg { width: 15px; height: 15px; fill: var(--gold); }
.nav a.nav__mobile-only { display: none; }   /* en pantallas grandes está el botón de la derecha */

/* Botón Chequeo express (encabezado) */
.btn--express { border-color: var(--gold); color: var(--gold-text); background: var(--gold-pale); }
.btn--express:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--express svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.btn--express:hover svg:last-child { transform: none; }

/* Chequeo express */
.express {
  position: relative;
  padding-block: var(--section);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  color: rgba(255, 255, 255, .75);
  overflow: hidden;
  scroll-margin-top: 84px;
}
.express::before {
  content: "";
  position: absolute;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(208, 179, 97, .25);
  left: -200px;
  bottom: -280px;
}
.express__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.express__intro .section-title { margin-bottom: 16px; }
.express__intro p:not(.pill-badge) { font-size: 17.5px; max-width: 440px; margin-bottom: 24px; }
.express__perks { display: flex; flex-wrap: wrap; gap: 10px; }
.express__perks li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); font-size: 14px; color: var(--white); }

.express__card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.express__bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mist-2); }
.express__bar span { display: block; height: 100%; width: 33%; background: var(--gold); transition: width .4s var(--ease); }
.express__step { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.express__count { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.express__step h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(21px, 2vw, 25px); line-height: 1.25; color: var(--navy); margin-bottom: 22px; }
.express__opts { display: grid; gap: 10px; }
.express__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.express__opt svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.express__opt:hover { border-color: var(--gold); background: var(--gold-pale); }
.express__opt:hover svg { transform: translateX(3px); }
.express__result h3 { margin-bottom: 10px; }
.express__result p:not(.express__count):not(.express__note) { color: var(--muted); margin-bottom: 22px; }
.express__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.express__restart { border: 0; background: none; padding: 0; font-weight: 600; font-size: 15px; color: var(--navy); border-bottom: 1.5px solid var(--gold); cursor: pointer; }
.express__note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Preguntas frecuentes */
.faq { background: var(--mist); scroll-margin-top: 84px; }
.filters--center { justify-content: center; }
.faq__list { display: grid; gap: 12px; }
.faq__item[hidden] { display: none; }
.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.faq__item[open] { border-color: rgba(168, 131, 59, .45); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-pale); flex-shrink: 0; transition: transform .3s var(--ease), background-color .2s; }
.faq__icon::before,
.faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--gold-text); transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] .faq__icon { background: var(--navy); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--white); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }
.faq__answer a { color: var(--gold-text); font-weight: 600; text-decoration: underline; }
.faq__answer strong { color: var(--navy); }

/* Agenda */
.booking {
  scroll-margin-top: 84px;
  /* Foto de procedimiento de fondo con un velo blanco leve */
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .80) 45%, rgba(255, 255, 255, .72) 100%),
    url("../assets/img/fondo-contacto-homepage.jpg") center / cover no-repeat,
    var(--white);
}
.booking__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.booking__lead { color: #3d4b59; font-size: 17px; margin: 14px 0 30px; max-width: 460px; }
.booking__list { display: grid; gap: 18px; }
.booking__list li { display: flex; gap: 16px; align-items: flex-start; }
.booking__list .icon-circle { width: 48px; height: 48px; }
.booking__list .icon-circle svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.booking__list strong { display: block; color: var(--navy); font-size: 16px; }
.booking__list a { color: var(--navy); font-weight: 600; }
.booking__list a:hover { color: var(--gold-text); }
.booking__list span { color: var(--muted); font-size: 15px; }
.booking__mail { font-size: 14.5px; word-break: break-all; }
.booking .form { background: rgba(255, 255, 255, .9); border-color: transparent; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.booking .field input,
.booking .field select,
.booking .field textarea { background: var(--mist); }
.booking .form .btn { justify-self: start; }

/* Burbuja del botón de WhatsApp */
.wa-float__bubble {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: bubbleIn .5s var(--ease) 1.5s both;
}
@keyframes bubbleIn { from { opacity: 0; transform: translate(8px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

@media (max-width: 900px) {
  .express__grid,
  .booking__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wa-float__bubble { display: none; }
  .faq__item summary { padding: 18px; font-size: 16.5px; }
  .faq__answer { padding: 0 18px 18px; }
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Loader de entrada ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .9s;
  /* respaldo: si el JS no corre, se oculta solo a los 6 s */
  animation: loaderFallback 0s linear 6s forwards;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; animation: loaderIn .7s var(--ease) both; }
.loader__logo { width: min(240px, 60vw); height: auto; }
.loader__bar { position: relative; width: 120px; height: 2px; border-radius: 2px; background: var(--gold-pale); overflow: hidden; }
.loader__bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: loaderBar 1.2s var(--ease) infinite; }
.loader.is-done .loader__inner { opacity: 0; transform: translateY(-24px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
@keyframes loaderIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes loaderBar { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); transform-origin: left; } 61% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes loaderFallback { to { visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float::before { animation: none; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {
  .trust__item { flex-direction: column; gap: 12px; padding: 26px 20px; }
  .treatments__grid { grid-template-columns: repeat(2, 1fr); }
  .t-card__media { aspect-ratio: 4 / 3; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .quote--featured { grid-column: 1 / -1; }
  .tech-cards,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .members,
  .videos__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .article__grid { grid-template-columns: 1fr; }
  .article__aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1199px) {
  .header__inner { display: flex; }
  .header__actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
}

@media (max-width: 900px) {
  .hero__grid,
  .section-head,
  .page-hero__grid,
  .tech__grid,
  .doctor__grid,
  .doc-hero__grid,
  .bio__grid,
  .condition,
  .location,
  .contact__grid,
  .video-featured,
  .cta__inner { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; gap: 0; }
  .hero__copy { padding-bottom: 32px; }
  .hero__visual { min-height: 440px; flex-direction: column; align-items: center; }
  .hero__doctor { width: min(320px, 76%); }
  .clinic-card { position: relative; right: auto; bottom: auto; width: 100%; margin: -24px 0 28px; }
  .section-head__text,
  .page-hero__lead,
  .cta__actions { justify-self: start; }
  .doc-hero__grid { gap: 0; }
  .doc-hero__copy { padding-bottom: 12px; }
  .doc-hero__lead { margin-bottom: 0; }
  .doc-hero__visual { min-height: 0; padding-top: 12px; }
  .bio__aside { position: static; }
  .condition--reverse .condition__media,
  .location--reverse .location__map { order: 0; }
  .location__map,
  .location__map iframe { min-height: 300px; }
  .clinics__grid,
  .posts { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Tablet: la foto del doctor (inicio) en formato apaisado para que no ocupe toda la pantalla */
@media (min-width: 601px) and (max-width: 900px) {
  .doctor__photo { aspect-ratio: 4 / 3; }
  .doctor__photo img { width: auto; height: 96%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .timeline { padding-left: 32px; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline li::before { left: -32px; }
  .t-card__media { aspect-ratio: 4 / 3; }
  .header__inner { height: 72px; gap: 12px; }
  .nav { top: 72px; }
  .header__logo img { width: 145px; }
  .header__actions .btn { display: none; }
  .nav a.nav__mobile-only { display: inline-flex; }
  .hero__ctas .btn { width: 100%; }
  .trust__grid,
  .treatments__grid,
  .testimonials__grid,
  .doctor__features,
  .tech__list,
  .tech-cards,
  .steps,
  .videos__grid,
  .condition__cols,
  .form__row,
  .article__aside { grid-template-columns: 1fr; }
  .trust__item { flex-direction: row; gap: 16px; padding: 22px 0; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--line); }
  /* cifras del doctor: en celular, una fila por cifra (ícono · número · texto) */
  .doc-facts { grid-template-columns: 1fr; }
  .doc-facts div { display: grid; grid-template-columns: 40px 52px 1fr; align-items: center; gap: 14px; text-align: left; padding: 18px 0; }
  .doc-facts div + div { border-left: 0; border-top: 1px solid rgba(168, 131, 59, .28); }
  .doc-facts .icon-circle { width: 40px; height: 40px; margin-bottom: 0; }
  .doc-facts dt { font-size: 34px; margin-bottom: 0; text-align: center; }
  .doc-facts dd { font-size: 14.5px; max-width: none; }
  .clinic { padding: 28px 22px; }
  .location__list div { grid-template-columns: 1fr; gap: 2px; }
  .channel-cta { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .members { grid-template-columns: 1fr; grid-auto-rows: auto; }  /* en una columna cada bloque mide lo que su texto */
}

/* Instalaciones (video) */
.facilities { scroll-margin-top: 84px; }
.facilities .video-featured { margin-bottom: 0; }
.facilities__list { margin: -8px 0 28px; }
