/*
 * REGLA GLOBAL DE SMART THERAPY: PROPORCIÓN DE IMÁGENES E ICONOS PEQUEÑA.
 * Cargar después de styles.css. No aumentar tamaños en componentes individuales.
 * Iconos: 18 px; logotipos: 40–44 px; miniaturas: 56–72 px.
 * Las áreas de pulsación son independientes y conservan 44 px como mínimo.
 * Solo la fotografía editorial y el visor solicitado por el visitante son grandes.
 */
:root {
  --visual-icon: 18px;
  --visual-logo: 44px;
  --visual-institute-logo: 40px;
  --visual-thumbnail-width: 56px;
  --visual-thumbnail-height: 42px;
}

/* Invariantes intencionales: evitan que reglas heredadas agranden los dibujos. */
body svg,
body .ui-icon {
  width: var(--visual-icon) !important;
  height: var(--visual-icon) !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0;
}
body .ui-glyph {
  font-size: var(--visual-icon) !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

/* Cualquier nueva imagen accesoria empieza pequeña, nunca al ancho del bloque. */
body img:not(.content-photo):not(.detail-image):not(.brand-logo) {
  max-width: 72px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}
body .brand img.clinical-logo {
  width: var(--visual-logo) !important;
  height: var(--visual-logo) !important;
  max-width: var(--visual-logo) !important;
  max-height: var(--visual-logo) !important;
  object-fit: contain !important;
  mix-blend-mode: normal;
}
body .training-top img {
  width: var(--visual-institute-logo) !important;
  height: var(--visual-institute-logo) !important;
  max-width: var(--visual-institute-logo) !important;
  max-height: var(--visual-institute-logo) !important;
  margin-top: 0;
  object-fit: contain !important;
}

/* Miniaturas: el original se conserva, solo su marco se reduce. */
#redes .gallery-trigger,
#redes .social-card-brand .gallery-trigger {
  width: var(--visual-thumbnail-width) !important;
  height: 44px !important;
  aspect-ratio: 4 / 3;
  flex: 0 0 var(--visual-thumbnail-width) !important;
  padding: 2px;
  min-height: 44px;
}
#redes .gallery-trigger img {
  width: 100%;
  height: 100%;
  max-width: var(--visual-thumbnail-width) !important;
  max-height: var(--visual-thumbnail-height) !important;
  object-fit: contain !important;
}
/* El dibujo queda contenido en 56×42; su botón conserva 44 px de alto. */
#redes .social-card {
  gap: 10px;
}
#redes .social-card-copy > a {
  min-height: 44px;
}
body .club-program-body figure {
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
}
body .club-program-body img {
  width: 72px !important;
  height: 48px !important;
  object-fit: contain !important;
}
body .club-program-body figure > a {
  width: 72px;
  min-height: 48px;
  flex-shrink: 0;
}
body .club-program-body figcaption {
  margin: 0;
  flex: 1;
}

/* Motivos decorativos: sin flechas o comillas monumentales. */
body .note-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
}
body .image-note {
  gap: 12px;
  padding: 16px 18px;
}
body .trust-symbol {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body .trust-inner > div {
  gap: 12px;
}
body .confidence-mark {
  min-height: 0;
  padding: 32px;
}
body .confidence-mark > .ui-glyph {
  margin-bottom: 15px;
  height: 18px;
  width: 18px;
  color: var(--blue);
}
body .confidence-mark p {
  font-size: 29px;
  margin-bottom: 20px;
}
body .alliance-art {
  top: 29px;
  right: 26px;
  width: 18px;
  height: 18px;
  color: var(--blue);
}
body .alliance-card > .eyebrow {
  padding-right: 25px;
  margin-bottom: 30px;
}
body .compact-gallery-symbol {
  width: 28px;
  height: 28px;
}
body .core-location {
  flex-direction: row;
  gap: 8px;
  min-width: 0;
  align-self: center;
  padding: 10px 12px;
}
body .step-number {
  font-size: 28px;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

/* Iconos pequeños, botones cómodos: no reducir el blanco de interacción. */
body .header-social a {
  width: 44px;
  height: 44px;
}
body .floating-wa {
  min-height: 52px;
  padding: 9px 15px;
  gap: 9px;
}
body .dialog-close {
  width: 44px;
  height: 44px;
  font-size: 18px;
}
body .gallery-navigation button,
body .menu-toggle {
  min-height: 44px;
}

@media (max-width: 760px) {
  body .trust-symbol {
    margin: 0 auto 8px;
  }
  body .confidence-mark {
    padding: 26px;
  }
  body .confidence-mark p {
    font-size: 27px;
  }
  body .club-program-body figure {
    margin-top: 16px;
  }
  body .core-location {
    align-self: flex-start;
  }
}
@media (max-width: 400px) {
  body .site-header .brand-tagline {
    display: none;
  }
}

/* Texto auxiliar y numeración no son iconos: conservan escala discreta. */
body .vertical-note.ui-glyph { font-size: 8px !important; line-height: 1.5 !important; }
body .care-pillars > div > .ui-glyph { font-size: 11px !important; line-height: 1.5 !important; }
