/* V2 — autoridad médica, credenciales, trayectoria e instituciones.
   Generado junto a tools/sitegen/apply_site_data.py. Usa los tokens de modern-refresh.css. */

/* Aparición suave al hacer scroll (assets/site-v2.js añade .v2-anim solo si hay JS y no se pide reducir movimiento) */
html.v2-anim [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.v2-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* Franja de cifras clave */
.v2-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 clamp(26px, 3vw, 40px);
}
.v2-facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 18px;
  border-radius: 22px;
  background: var(--brand-black, #111310);
  color: var(--brand-white, #fffdf8);
}
.v2-facts dt { color: rgba(255, 253, 248, .66); font-size: 12px; line-height: 1.35; letter-spacing: .04em; }
.v2-facts dd { margin: 0; color: var(--brand-gold-light, #e4cf9d); font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }

@media (min-width: 1000px) {
  .v2-cred-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Experiencias de pacientes: tira de videos */
.v2-patients {
  width: calc(100% - 40px);
  max-width: 1480px;
  margin: 34px auto;
  border-radius: 42px;
  background:
    radial-gradient(circle at 8% 0%, rgba(196, 164, 99, .18), transparent 32%),
    var(--brand-black, #111310);
  color: var(--brand-white, #fffdf8);
}
.v2-patients .eyebrow { color: var(--brand-gold-light, #e4cf9d); }
.v2-patients .v2-head h2 em { color: var(--brand-gold, #c4a463); }
.v2-patients .v2-head p { color: rgba(255, 253, 248, .7); }
.v2-patient-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  margin: 0;
  padding: 4px 2px 14px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 164, 99, .5) transparent;
}
.v2-patient { min-width: 0; scroll-snap-align: start; }
.v2-patient-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.v2-patient-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.v2-patient-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%);
}
@media (hover: hover) { .v2-patient-media:hover img { transform: scale(1.05); } }
.v2-patient-media:focus-visible { outline: 2px solid var(--brand-gold, #c4a463); outline-offset: 3px; }
.v2-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--brand-white, #fffdf8);
  border-radius: 50%;
  background: var(--brand-gold, #c4a463);
  color: var(--brand-black, #111310);
  font-size: 19px;
  transform: translate(-50%, -50%);
  animation: v2-pulse 2.6s ease-in-out infinite;
}
@keyframes v2-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 164, 99, .5); }
  50% { box-shadow: 0 0 0 14px rgba(196, 164, 99, 0); }
}
.v2-dur {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17, 19, 16, .75);
  color: var(--brand-white, #fffdf8);
  font-size: 12px;
}
.v2-patient-copy { padding: 12px 4px 0; }
.v2-patient-copy strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.2; }
.v2-patient-copy span { display: block; margin-top: 3px; color: rgba(255, 253, 248, .62); font-size: 13px; line-height: 1.45; }

.v2-modal {
  width: min(94vw, 520px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #0b0c0a;
  color: var(--brand-white, #fffdf8);
  overflow: hidden;
}
.v2-modal::backdrop { background: rgba(5, 6, 5, .88); }
.v2-modal-media { display: flex; justify-content: center; align-items: center; padding: 52px 12px 6px; }
.v2-modal-media video,
.v2-modal-media img { display: block; max-width: 100%; max-height: calc(94vh - 120px); border-radius: 14px; }
.v2-modal-title { margin: 0; padding: 8px 16px 18px; color: rgba(255, 253, 248, .78); font-size: 14px; text-align: center; }
.v2-modal-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(228, 207, 157, .35);
  border-radius: 50%;
  background: rgba(17, 19, 16, .75);
  color: var(--brand-gold-light, #e4cf9d);
  cursor: pointer;
}
.v2-modal-close { top: 8px; right: 8px; }
.v2-modal-prev { left: 8px; top: 50%; }
.v2-modal-next { right: 8px; top: 50%; }
.v2-modal-btn[hidden] { display: none; }
@media (min-width: 1100px) {
  .v2-patient-track { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
}
@media (max-width: 640px) {
  .v2-patients { width: calc(100% - 16px); border-radius: 28px; }
  .v2-patient-track { grid-auto-columns: 62%; }
}
@media (prefers-reduced-motion: reduce) { .v2-play { animation: none; } }

/* Tecnología quirúrgica */
.v2-tech-section {
  width: calc(100% - 40px);
  max-width: 1480px;
  margin: 34px auto;
  border-radius: 42px;
  background:
    radial-gradient(circle at 92% 0%, rgba(196, 164, 99, .16), transparent 35%),
    #141612;
  color: var(--brand-white, #fffdf8);
}
.v2-tech-section .eyebrow { color: var(--brand-gold-light, #e4cf9d); }
.v2-tech-section .v2-head h2 em { color: var(--brand-gold, #c4a463); }
.v2-tech-section .v2-head p { color: rgba(255, 253, 248, .7); }
.v2-tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.v2-tech article {
  height: 100%;
  padding: 26px 24px 22px;
  border: 1px solid rgba(228, 207, 157, .14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .05), rgba(255, 253, 248, .015));
  transition: transform .4s ease, border-color .4s ease;
}
@media (hover: hover) { .v2-tech article:hover { transform: translateY(-4px); border-color: rgba(228, 207, 157, .38); } }
.v2-tech-media { display: grid; place-items: center; height: 150px; margin-bottom: 18px; border-radius: 20px; background: radial-gradient(circle at 50% 55%, rgba(196, 164, 99, .16), transparent 65%); }
.v2-tech-media { height: 190px; overflow: hidden; }
.v2-tech-photos { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; padding: 12px; }
.v2-tech-photos img { display: block; width: auto; height: auto; max-width: 92%; max-height: 166px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); transition: transform .5s ease; }
.v2-tech-media-multi img { max-height: 74px; }
@media (hover: hover) { .v2-tech article:hover .v2-tech-photos img { transform: translateY(-4px) scale(1.03); } }
.v2-tech-icon svg { width: 96px; height: 96px; fill: none; stroke: var(--brand-gold-light, #e4cf9d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-tech .v2-kicker { color: var(--brand-gold, #c4a463); }
.v2-tech h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.v2-tech article > p:not(.v2-kicker):not(.v2-tech-label) { margin: 0 0 14px; color: rgba(255, 253, 248, .74); font-size: 14px; line-height: 1.7; }
.v2-tech-label { margin: 0 0 8px; color: rgba(255, 253, 248, .5); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.v2-tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.v2-tech-chips a {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid rgba(228, 207, 157, .28);
  border-radius: 999px;
  color: var(--brand-gold-light, #e4cf9d);
  font-size: 12.5px;
  text-decoration: none;
}
.v2-tech-chips a:hover { background: rgba(196, 164, 99, .14); }
.v2-tech-limits > summary {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 253, 248, .62);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.v2-tech-limits > summary::-webkit-details-marker { display: none; }
.v2-tech-limits[open] > summary span:last-child { transform: rotate(45deg); }
.v2-tech-limits > summary span:last-child { transition: transform .25s ease; }
.v2-tech-limits p { margin: 10px 0 0; color: rgba(255, 253, 248, .62); font-size: 13px; line-height: 1.65; }
@media (max-width: 640px) {
  .v2-tech-section { width: calc(100% - 16px); border-radius: 28px; }
}

/* Páginas de procedimiento, sede y landing: lectura más ligera */
.v2-list-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(130, 109, 66, .35);
  border-radius: 999px;
  background: transparent;
  color: #826d42;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.v2-list-more:hover { background: rgba(196, 164, 99, .12); }
.v2-list-more::after { content: "+"; font-size: 15px; line-height: 1; }
.v2-list-more[aria-expanded="true"]::after { content: "−"; }

.service-info-card { transition: transform .35s ease, box-shadow .35s ease; }
@media (hover: hover) {
  .service-info-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(17, 19, 16, .08); }
}

@media (min-width: 900px) {
  .service-info-card-grid > .seo-risk-card { grid-column: 1 / -1; }
  .service-info-card-grid > .seo-risk-card ul { columns: 2; column-gap: 32px; }
  .service-info-card-grid > .seo-risk-card li { break-inside: avoid; }
  .seo-risks .seo-risk-list { columns: 2; column-gap: 28px; }
  .seo-risks .seo-risk-list li { break-inside: avoid; }
}

.service-info-aside a { transition: color .25s ease, padding-left .25s ease; }
.service-info-aside a.is-active { color: var(--brand-gold-light, #e4cf9d) !important; padding-left: 10px; position: relative; }
.service-info-aside a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-gold, #c4a463);
  transform: translateY(-50%);
}

/* /el-doctor/ — credenciales compactas */
.v2-cred-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px; }
.v2-cred-card .v2-kicker { margin-bottom: 4px; }
.v2-cred-card h3 { margin: 0; font-size: 21px; }
.v2-cred-card p { margin: 0; font-size: 13.5px; }
.v2-cred-card > span { margin-top: auto; padding-top: 8px; font-size: 12.5px; }

/* SCPBA explicada */
.v2-scpba {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid rgba(196, 164, 99, .35);
  border-radius: 26px;
  background: linear-gradient(120deg, #f7f1e4, var(--brand-white, #fffdf8));
}
.v2-scpba-logo { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: var(--brand-white, #fffdf8); box-shadow: 0 10px 30px rgba(17, 19, 16, .06); }
.v2-scpba-logo img { max-width: 100%; height: auto; }
.v2-scpba h3 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.15; }
.v2-scpba p:not(.v2-kicker) { margin: 0 0 10px; color: #4a473f; font-size: 14.5px; line-height: 1.7; }

/* Trayectoria: horizontal en escritorio, vertical animada en móvil */
.v2-trajectory { background: #e8dfd0; }
.v2-tl-controls { display: flex; gap: 10px; justify-content: flex-end; }
.v2-tl-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(26, 28, 24, .2);
  border-radius: 50%;
  background: var(--brand-white, #fffdf8);
  color: var(--brand-ink, #1a1c18);
  font-size: 20px;
  cursor: pointer;
  transition: background .25s ease, opacity .25s ease;
}
.v2-tl-controls button:hover:not(:disabled) { background: var(--brand-gold, #c4a463); }
.v2-tl-controls button:disabled { opacity: .3; cursor: default; }
.v2-tl { position: relative; --tl-p: 0; }
.v2-tl-track { position: relative; margin: 0; padding: 0; list-style: none; }
.v2-tl-item { position: relative; }
.v2-tl-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--brand-gold, #c4a463);
  border-radius: 50%;
  background: #e8dfd0;
  transition: background .4s ease, transform .4s ease, box-shadow .4s ease;
}
.v2-tl-item.is-on .v2-tl-dot { background: var(--brand-gold, #c4a463); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(196, 164, 99, .2); }
.v2-tl-date { display: block; color: #826d42; font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.v2-tl-item strong { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.v2-tl-item:not(.is-key) strong { font-weight: 400; color: #4a473f; }
.v2-tl-where { display: block; margin-top: 4px; color: var(--brand-muted, #746f66); font-size: 13px; line-height: 1.5; }
.v2-tl-item.is-key .v2-tl-date { color: var(--brand-ink, #1a1c18); }
.v2-tl-line { position: absolute; background: rgba(130, 109, 66, .22); }
.v2-tl-line span { position: absolute; background: var(--brand-gold, #c4a463); transition: width .15s linear, height .15s linear; }

@media (min-width: 900px) {
  .v2-tl-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 24%);
    gap: 18px;
    padding: 34px 4px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .v2-tl-track::-webkit-scrollbar { display: none; }
  .v2-tl-item { scroll-snap-align: start; padding: 22px 20px 20px; border-radius: 22px; background: var(--brand-white, #fffdf8); }
  .v2-tl-item.is-key { box-shadow: inset 0 0 0 1px rgba(196, 164, 99, .45); }
  .v2-tl-dot { top: -27px; left: 20px; }
  .v2-tl-line { left: 4px; right: 4px; top: 13px; height: 2px; }
  .v2-tl-line span { left: 0; top: 0; height: 100%; width: calc(var(--tl-p) * 100%); }
}
@media (max-width: 899px) {
  .v2-tl-controls { display: none; }
  .v2-tl-track { display: grid; gap: 22px; padding-left: 34px; }
  .v2-tl-dot { left: -33px; top: 4px; }
  .v2-tl-line { left: 6px; top: 8px; bottom: 8px; width: 2px; }
  .v2-tl-line span { left: 0; top: 0; width: 100%; height: calc(var(--tl-p) * 100%); }
}

/* Instituciones: Argentina y Chile arriba, Colombia a todo el ancho */
.v2-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.v2-country-wide { grid-column: 1 / -1; }
.v2-country-wide .v2-country-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.v2-country-wide .v2-place + .v2-place { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px solid var(--line, rgba(26, 28, 24, .12)); }
@media (max-width: 760px) {
  .v2-country-grid { grid-template-columns: 1fr !important; }
  .v2-country-wide .v2-country-places { grid-template-columns: 1fr; }
  .v2-country-wide .v2-place + .v2-place { padding-left: 0; border-left: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line, rgba(26, 28, 24, .12)); }
  .v2-scpba { grid-template-columns: 1fr; }
}

/* Video en línea con vista previa (Marcos Petro) */
.v2-inline-video { position: relative; }
.v2-inline-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-inline-play {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 60px 16px 18px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
  color: var(--brand-white, #fffdf8);
  cursor: pointer;
  font: inherit;
}
.v2-inline-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border: 2px solid var(--brand-white, #fffdf8); border-radius: 50%; background: var(--brand-gold, #c4a463); color: var(--brand-black, #111310); animation: v2-pulse 2.6s ease-in-out infinite; }
.v2-inline-icon svg { width: 22px; height: 22px; fill: currentColor; }
.v2-inline-play strong { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.v2-inline-play small { color: rgba(255, 253, 248, .75); font-size: 12px; }
.v2-inline-video.is-playing .v2-inline-play { display: none; }

/* /el-doctor/: «La atención está en los detalles» en claro para alternar colores */
.doctor-profile .profile-practice { background: var(--brand-white, #fffdf8) !important; color: var(--brand-ink, #1a1c18); box-shadow: inset 0 0 0 1px rgba(26, 28, 24, .06); }
.doctor-profile .profile-practice-copy h2,
.doctor-profile .profile-practice-copy p { color: var(--brand-ink, #1a1c18) !important; }
.doctor-profile .profile-practice-copy p { color: #4a473f !important; }
.doctor-profile .profile-practice-copy h2 em { color: #826d42 !important; }
.doctor-profile .profile-practice-copy .eyebrow { color: #826d42 !important; }
.doctor-profile .profile-practice-copy .text-link { color: var(--brand-ink, #1a1c18) !important; }

/* Trayectoria: hitos visibles + resto desplegable */
.v2-tl-more { margin-top: 10px; }
.v2-tl-more > summary,
.enc-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(26, 28, 24, .16);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.v2-tl-more > summary::-webkit-details-marker,
.enc-more > summary::-webkit-details-marker { display: none; }
.v2-tl-more[open] > summary span:last-child,
.enc-more[open] > summary span:last-child { transform: rotate(45deg); }
.v2-tl-more > summary span:last-child,
.enc-more > summary span:last-child { transition: transform .25s ease; font-size: 18px; line-height: 1; }
.v2-timeline-secondary { margin-top: 12px; }

.v2-authority-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 4px;
}

.v2-authority-links a {
  color: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(196, 164, 99, .55);
  text-underline-offset: 4px;
}

.v2-authority-links a:hover { color: var(--brand-gold, #c4a463); }

.v2-shell {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
}

.v2-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(30px, 4vw, 52px);
}

.v2-head h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.035em;
}

.v2-head h2 em { color: #826d42; font-weight: 400; }
.v2-head p { margin: 0 0 12px; color: #3d3b35; font-size: 15px; line-height: 1.8; }
.v2-head-compact { margin-bottom: 26px; }

.v2-kicker {
  margin: 0 0 8px;
  color: #826d42;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.v2-doctor-credentials { background: var(--brand-white, #fffdf8); }

.v2-cred-grid,
.v2-fac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-cred-card,
.v2-fac-card {
  height: 100%;
  padding: 24px;
  border-radius: 24px;
  background: var(--brand-ivory, #f4f0e7);
}

.v2-cred-card h3,
.v2-fac-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
}

.v2-cred-card p,
.v2-fac-card p { margin: 0 0 10px; color: #4a473f; font-size: 14px; line-height: 1.65; }
.v2-cred-card > span { color: #826d42; font-size: 13px; }
.v2-fac-card a { color: #826d42; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

.v2-note {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--brand-muted, #746f66);
  font-size: 13px;
  line-height: 1.7;
}

.v2-note a { color: #826d42; text-decoration: underline; text-underline-offset: 3px; }

.v2-timeline-wrap {
  margin-top: clamp(50px, 6vw, 90px);
  padding-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line, rgba(26, 28, 24, .12));
}

.v2-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.v2-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: rgba(196, 164, 99, .5);
}

.v2-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 13px 0;
}

.v2-timeline li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: -25px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--brand-gold, #c4a463);
  border-radius: 50%;
  background: var(--brand-white, #fffdf8);
}

.v2-timeline li.is-key::before { background: var(--brand-gold, #c4a463); }
.v2-tl-date { color: #826d42; font-size: 13px; font-weight: 500; }
.v2-timeline strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; }
.v2-timeline li:not(.is-key) strong { font-weight: 400; color: #4a473f; }
.v2-timeline span:not(.v2-tl-date) { display: block; color: var(--brand-muted, #746f66); font-size: 13px; }

.v2-doctor-places { background: #e8dfd0; }

.v2-country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.v2-country {
  padding: 24px;
  border-radius: 26px;
  background: var(--brand-white, #fffdf8);
}

.v2-country > h3 {
  margin: 0 0 12px;
  color: #826d42;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.v2-place + .v2-place { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line, rgba(26, 28, 24, .12)); }
.v2-place h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.v2-place h4 a { color: inherit; text-decoration: none; }
.v2-place h4 a:hover { color: #826d42; }
.v2-place p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; }
.v2-place small { display: block; color: var(--brand-muted, #746f66); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.v2-place ul { margin: 4px 0 0; padding: 0; list-style: none; }
.v2-place li { padding: 4px 0; font-size: 14px; }
.v2-place li strong { display: block; font-weight: 500; }
.v2-place li span { color: var(--brand-muted, #746f66); font-size: 13px; }

.v2-proc-links { margin-top: 34px; }
.v2-proc-links h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.v2-proc-links ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.v2-proc-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(26, 28, 24, .16);
  border-radius: 999px;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  background: var(--brand-white, #fffdf8);
}

.v2-proc-links a:hover { border-color: var(--brand-gold, #c4a463); }

.v2-facilities { background: var(--brand-white, #fffdf8); }
.v2-fac-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.v2-review-banner {
  width: calc(100% - 40px);
  max-width: 1480px;
  margin: 12px auto 0;
  padding: 12px 18px;
  border: 1px dashed #826d42;
  border-radius: 14px;
  background: #fff8e6;
  color: #4a3d1c;
  font-size: 13px;
  line-height: 1.5;
}

.v2-fac-address { color: var(--brand-muted, #746f66); font-size: 13px !important; }
.v2-fac-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Presupuesto: qué incluye / qué se paga aparte */
.v2-budget {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin-top: 26px;
}

.v2-budget h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.v2-budget ul { margin: 0; padding: 0; list-style: none; }
.v2-budget li { position: relative; padding: 5px 0 5px 22px; font-size: 14px; line-height: 1.5; }
.v2-budget-in li::before { content: "✓"; position: absolute; left: 0; color: #826d42; font-weight: 600; }
.v2-budget-out li::before { content: "+"; position: absolute; left: 2px; color: var(--brand-muted, #746f66); font-weight: 600; }
.v2-budget .v2-note { grid-column: 1 / -1; margin-top: 4px; }

/* Experiencias de pacientes */
.v2-testimonials { background: var(--brand-white, #fffdf8); }
.v2-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.v2-testimonial { height: 100%; padding: 24px; border-radius: 24px; background: var(--brand-ivory, #f4f0e7); }
.v2-testimonial h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.v2-testimonial p { margin: 0 0 8px; color: #4a473f; font-size: 14px; line-height: 1.6; }
.v2-testimonial a { color: #826d42; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* /el-doctor/: el comparador antes/después de la vitrina de resultados.
   Una regla de .doctor-result-comparison figure dejaba la capa "después" en flujo normal (debajo),
   por lo que solo se veía la foto de antes en ambos lados. */
.doctor-result-comparison .before-after-slider .before-after-after {
  position: absolute;
  inset: 0;
  margin: 0;
}
.doctor-result-comparison .before-after-slider .before-after-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* /contacto/: sedes en 3×2 con tarjeta de cierre */
@media (min-width: 761px) and (max-width: 1099px) {
  .contact-locations-surface .locations:has(> :nth-child(5)),
  .contact-page .locations:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-locations-surface .locations > article .location-landmark img { width: 100%; height: 100%; object-fit: cover; }
.contact-locations-surface .locations > article.location-barranquilla { background: #e8dfd0; }
.contact-locations-surface .locations > article.location-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 85% 10%, rgba(196, 164, 99, .35), transparent 45%),
    #1c1e19;
  color: var(--brand-white, #fffdf8);
  border: 1px solid rgba(228, 207, 157, .25);
}
.location-cta small { color: var(--brand-gold-light, #e4cf9d); font-size: 11px; letter-spacing: .14em; }
.location-cta h2 { margin: 0; color: var(--brand-white, #fffdf8) !important; font-family: var(--serif); font-size: clamp(28px, 2.4vw, 38px) !important; font-weight: 400; line-height: 1.08; }
.location-cta p { margin: 0; color: rgba(255, 253, 248, .7); font-size: 14px; }
.location-cta .button { align-self: flex-start; display: inline-flex; gap: 10px; margin-top: 6px; }

/* Footer: ajustes de pulido (2026-11-30) */
footer.footer-redesign .footer-consult { border-radius: 3px; }
footer.footer-redesign .footer-explore { border-top: 0; }
footer.footer-redesign .footer-social-link .link-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
footer.footer-redesign .footer-social-link .link-icon svg { width: 16px; height: 16px; }
footer.footer-redesign .footer-social-links { gap: 8px; }
footer.footer-redesign .footer-social-links a.footer-social-link { padding-right: 13px !important; gap: 8px !important; }
@media (min-width: 900px) {
  footer.footer-redesign .footer-bottom p { white-space: nowrap; }
}

/* Cinco sedes */
@media (min-width: 1100px) {
  footer.footer-redesign .footer-locations[data-cities="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .seo-location-grid:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .contact-locations-surface .locations:has(> :nth-child(5)),
  .contact-page .locations:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .v2-budget { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ancho de caja uniforme (2026-11-30)
   Todo el contenido de escritorio se alinea a una misma columna de 1180 px
   (la que ya usaban las páginas de sede), sin importar si la sección es una
   franja a todo el ancho o una tarjeta oscura con bordes redondeados.
   ========================================================================== */
/* Los paneles ocultos del menú no deben generar desplazamiento horizontal (p. ej. /resultados/ a 820 px). */
body { overflow-x: clip; }
/* 100% se resuelve donde se usa (relleno de la sección = ancho de <main>). */
:root { --v2-content: min(1180px, 100% - 2 * clamp(44px, 5vw, 72px)); }
@media (min-width: 761px) {
  main > section,
  main > .results-paired-sections,
  main > div.section {
    --v2-pad: max(24px, calc((100% - var(--v2-content)) / 2 - var(--v2-inset, 0px)));
    padding-left: var(--v2-pad) !important;
    padding-right: var(--v2-pad) !important;
  }
  /* Secciones tipo tarjeta (20 px de margen, máx. 1480 px): se descuenta su margen.
     Los porcentajes del relleno se calculan sobre el ancho de <main>. */
  main > section:is(.hero-v2, .v2-patients, .home-journey, .case-carousel-section, .v2-tech-section,
    .doctor-video-section, .payment-section, .faq-section, .profile-hero, .encounters, .profile-practice,
    .service-directory, .service-hero, .service-confidence, .service-faq-feature, .enc-block,
    .contact-channels-surface, .contact-locations-surface, .page-intro, .article-grid, .related) {
    --v2-inset: max(20px, calc((100% - 1480px) / 2));
  }
  main > section.results-hero { --v2-inset: max(24px, calc((100% - 1440px) / 2)); }
  main > .results-paired-sections { column-gap: 56px; }
  /* Tarjetas grandes: el relleno lo pone la tarjeta, no la sección. */
  main > section.service-doctor-home-clone,
  main > section.home-doctor-compact,
  main > section.contact-band { padding-left: 0 !important; padding-right: 0 !important; }
  main .home-doctor-summary-card,
  main .contact-band .contact-band-copy {
    padding-left: max(28px, calc((100% - var(--v2-content)) / 2)) !important;
    padding-right: max(28px, calc((100% - var(--v2-content)) / 2)) !important;
  }
  main .home-doctor-summary-card { width: 100%; }
  /* Paso a paso: sin columna interna estrecha ni tope de 1300 px. */
  main > section.attention-journey { max-width: none; width: auto; }
  .attention-list.scroll-timeline { width: 100%; }
  /* Cajas internas que recortaban el ancho. */
  .v2-shell { width: 100%; }
  .encounters.section .enc-shell { padding-left: 0; padding-right: 0; }
  .enc-block .enc-block-inner { max-width: none; }
  .case-carousel-section .case-carousel-shell,
  .case-carousel-section .case-carousel-bottom { max-width: none; width: 100%; }
  .experience-guide .experience-stages { width: 100%; max-width: none; }
  .results-page .procedure-results-heading,
  .results-case-grid { max-width: none; }
  /* Resultados: las dos secciones emparejadas comparten la columna. */
  main > .results-paired-sections > section.procedure-results { padding-left: 0 !important; padding-right: 0 !important; }
  .contact-channels-surface .contact-channels { width: 100%; max-width: none; }
}

/* CTA de los artículos: icono de WhatsApp, texto y flecha en la misma línea */
.seo-article-cta .service-secondary-link {
  display: inline-flex !important; align-items: center; gap: 10px; align-self: flex-start; line-height: 1.2;
}
.seo-article-cta .service-secondary-link .link-icon,
.seo-article-cta .service-secondary-link .premium-arrow { display: inline-grid; place-items: center; flex: 0 0 auto; margin: 0 !important; position: static !important; transform: none !important; }
.seo-article-cta .service-secondary-link .link-icon svg { width: 18px; height: 18px; }
.seo-article-cta .service-secondary-link .premium-arrow svg { width: 16px; height: 16px; }

/* Procedimientos de la ciudad (landings y páginas de ciudad) */
.v2-local-procs h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; margin: 10px 0 24px; }
.v2-local-procs h2 em { color: var(--brand-gold, #b08d4a); }
.v2-local-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.v2-local-chips a, .v2-local-chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line, rgba(26, 28, 24, .14)); background: var(--paper, #fffdf8);
  color: var(--brand-ink, #1a1c18); font-size: 14px; text-decoration: none; transition: border-color .2s, background .2s;
}
.v2-local-chips a:hover, .v2-local-chips a:focus-visible { border-color: var(--brand-gold, #c4a463); background: #f6efe2; }
.v2-local-chips span[aria-current] { background: var(--brand-black, #151612); color: #fffdf8; border-color: transparent; }
.v2-local-sub { margin: 26px 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-muted, #746f66); }
.v2-local-chips-alt a { min-height: 38px; font-size: 13.5px; }

/* Tarjetas de sede en procedimientos: filas alineadas y botón corto (2026-11-30) */
.seo-location-card { padding: 24px 22px; }
.seo-location-card h3 { font-size: 26px; white-space: nowrap; }
.seo-location-card p { min-height: 3.2em; }
.seo-location-card li { display: grid; gap: 2px; justify-content: stretch; }
.seo-location-card li span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.seo-location-card li strong { font-weight: 500; white-space: nowrap; }
.seo-location-card > a { white-space: nowrap; gap: 8px; }

@media (max-width: 999px) {
  .v2-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2-cred-grid,
  .v2-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .v2-head { grid-template-columns: 1fr; }
  .v2-cred-grid,
  .v2-country-grid { grid-template-columns: 1fr; }
  .v2-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .v2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-facts > div:last-child { grid-column: 1 / -1; }
  .v2-shell { width: calc(100% - 32px); }
}
