/* The virtual visit is isolated from the existing site styles and forms. */
.consultorio-section {
  background: #f5f1fa;
  border-top: 1px solid var(--line);
}
.consultorio-section .section-heading { margin-bottom: 2rem; }
.consultorio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dcd5e8;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 14px 40px #403b680b;
}
.consultorio-section [hidden] { display: none !important; }
.tour-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 15% 25%, #e5daf2 0, transparent 50%),
    radial-gradient(ellipse at 90% 90%, #f5e8c9 0, transparent 50%),
    #fffdf8;
}
.tour-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid #d5c9e9;
  border-radius: 24px;
  color: var(--teal-dark);
  background: #ffffffb3;
}
.tour-icon svg { width: 46px; height: 46px; }
.tour-intro > strong {
  max-width: 28rem;
  font: 500 clamp(1.5rem, 3vw, 2rem)/1.2 Georgia, 'Times New Roman', serif;
  color: var(--ink);
}
.tour-intro > p {
  max-width: 29rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.tour-intro .button { margin-top: .25rem; }
.tour-intro > small { font-size: .75rem; line-height: 1.5; color: var(--muted); }
.tour-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: .75rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tour-status { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.tour-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: .5rem;
  min-height: 44px;
  max-width: 100%;
  padding: .625rem .875rem;
  border: 1px solid #d5c9e9;
  border-radius: 12px;
  background: #f3eef9;
  color: var(--teal-dark);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.tour-close:hover { background: #e9e0f3; }
.tour-frame { background: #eee8dc; }
.tour-frame iframe {
  display: block;
  width: 100%;
  height: clamp(540px, 70vh, 720px);
  height: clamp(540px, 70svh, 720px);
  border: 0;
}
.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 2rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.tour-footer > p {
  max-width: 39rem;
  margin: 0;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--muted);
}
.tour-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal-dark);
  font-size: .8125rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (min-width: 1081px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-header > nav { justify-content: center; gap: clamp(.75rem, 1.5vw, 1.5rem); font-size: .8125rem; }
}
@media (max-width: 600px) {
  .consultorio-card { border-radius: 20px; }
  .tour-intro { padding: 2rem 1.25rem; }
  .tour-intro .button { width: 100%; }
  .tour-toolbar { flex-wrap: wrap; padding: .75rem; }
  .tour-status { flex: 1 1 100%; }
  .tour-close { margin-left: auto; }
  .tour-frame iframe { height: 560px; }
  .tour-footer { flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; }
}
