/* ═══════════════════════════════════════════════════════════════════════════
   GOV-SITIO-30 · La mascota de SUSBI (public_site/partials/susbi_mascota.html)

   Medidas tomadas del PNG aprobado (susbi-mascota-aprobada.png, 1024 px): el
   cuerpo ocupa 910 × 768, los ojos miden 184 × 248 con el centro en (350, 470)
   y (683, 470), y la pupila mide 114 con un anillo cian de 6. Acá van en
   porcentajes del cuerpo, así la mascota se ve igual a 28 px que a 160 px.
   El anillo de la pupila usa cqi (unidades del contenedor) por la misma razón.
   ═══════════════════════════════════════════════════════════════════════════ */
.susbi-mascota {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--mascota-ancho, 3rem);
  aspect-ratio: 910 / 768;
  container-type: inline-size;
  vertical-align: middle;
}
.susbi-mascota__cuerpo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.susbi-mascota__cuerpo path {
  fill: #0e4059;
  stroke: #07e8fa;
  stroke-width: 40;
  stroke-linejoin: round;
}
.susbi-mascota__ojo {
  position: absolute;
  top: 28.51%;
  width: 20.22%;
  height: 32.29%;
  border-radius: 50%;
  background: #fdfdfd;
  transform-origin: 50% 50%;
}
.susbi-mascota__ojo--izq { left: 22.2%; }
.susbi-mascota__ojo--der { left: 58.79%; }
.susbi-mascota__pupila {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 61.96%;
  aspect-ratio: 1;
  box-sizing: border-box;
  border: max(1px, 0.66cqi) solid #07e8fa;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}

/* Ojos felices (susbi_ojos_vivos.js pone la clase): un arco, como al sonreír. */
.susbi-mascota.susbi-ojos-feliz .susbi-mascota__ojo {
  top: 34%;
  height: 16%;
  border: max(2px, 2.4cqi) solid #fdfdfd;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: transparent;
}
.susbi-mascota.susbi-ojos-feliz .susbi-mascota__pupila { opacity: 0; }
.susbi-mascota__ojo { transition: top 180ms cubic-bezier(0.23, 1, 0.32, 1), height 180ms cubic-bezier(0.23, 1, 0.32, 1); }
.susbi-mascota__pupila { transition: opacity 120ms ease; }

/* Tamaños con nombre: así no hay un width suelto en cada sección. */
.susbi-mascota--chip { --mascota-ancho: 1.9rem; }
.susbi-mascota--chat { --mascota-ancho: 2.6rem; }
.susbi-mascota--nucleo { --mascota-ancho: 100%; }

@media (prefers-reduced-motion: reduce) {
  .susbi-mascota__ojo, .susbi-mascota__pupila { transition: none; }
}
