/* ============================================================
   VORTEX LAB — Light theme: Glassmorphism + Liquid Glass
   Palette: white + black + transparent. Monochrome only.
   Shared across every page & component (linked in <helmet>).
   ============================================================ */

:root {
  --ink: #0a0a0a;        /* black details / text */
  --muted: #5b5b5b;      /* secondary text */
  --faint: #8a8a8a;      /* labels / tertiary */
  --hairline: rgba(0, 0, 0, 0.08);

  /* Typography — Montserrat (primary, headings) + Avenir Next (secondary, body).
     Avenir Next is an Apple system font; non-Apple devices fall back to Montserrat. */
  --font-primary: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-secondary: 'Avenir Next', 'Avenir', 'Montserrat', system-ui, sans-serif;

  /* Glass material (frosted white) */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: blur(22px) saturate(180%);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --panel-radius: 22px;
}

/* ---- Base document (white) ---- */
html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  overflow-x: hidden;   /* evita scroll horizontal en móvil (heros anchos) */
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* Headings + prominent titles use the primary face (Montserrat) */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); }

/* Soft colored mesh so the Liquid Glass actually refracts something.
   Kept light/pastel over white so dark text stays AA-legible. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  /* Pastel mesh in the agent palette: verde + morado + amarillo. Muchos blobs
     grandes y superpuestos, con caída larga a transparente, para que el color se
     sienta disperso por toda la página (no en cuadrantes). La suavidad vive en
     los propios degradados, sin filter (que algunos motores no pintan sobre
     pseudo-elementos fijos) y sin animación (evita el jank del cursor). */
  background:
    radial-gradient(60% 55% at 8% 6%,  rgba(52, 211, 153, 0.42) 0%, transparent 72%),
    radial-gradient(58% 55% at 88% 4%,  rgba(167, 139, 250, 0.40) 0%, transparent 72%),
    radial-gradient(62% 58% at 98% 40%, rgba(251, 214, 92, 0.42) 0%, transparent 72%),
    radial-gradient(55% 55% at 30% 40%, rgba(167, 139, 250, 0.30) 0%, transparent 72%),
    radial-gradient(60% 58% at 66% 60%, rgba(52, 211, 153, 0.34) 0%, transparent 72%),
    radial-gradient(58% 55% at 6% 74%,  rgba(251, 214, 92, 0.38) 0%, transparent 72%),
    radial-gradient(60% 58% at 92% 88%, rgba(167, 139, 250, 0.36) 0%, transparent 72%),
    radial-gradient(58% 55% at 44% 98%, rgba(52, 211, 153, 0.32) 0%, transparent 72%);
}
/* Keep content comfortably readable over the tinted mesh */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.18);
}

/* ---- Glassmorphism surfaces ---- */
.vl-glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
/* Hairline dark edge — defines the panel against white */
.vl-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
/* Liquid-glass specular sheen (top-left highlight) */
.vl-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 14% 0%, rgba(255, 255, 255, 0.75) 0%, transparent 46%);
}
.vl-glass-strong { background: var(--glass-bg-strong); }

/* Interactive card: lift + sharpen on hover */
.vl-glass-card {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 400ms ease, background 400ms ease;
}
.vl-glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ---- Botones: sólidos y decididos (estilo Tesla) ----
   Primario  = negro sólido, texto blanco. Inconfundiblemente clickeable.
   Secundario = transparente con borde negro. Se rellena al hover. */
.vl-scene-btn {
  position: relative;
  display: inline-block;
  padding: 14px 34px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-primary);
  text-align: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.vl-btn-primary, .vl-btn-light-primary {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.vl-btn-primary:hover, .vl-btn-light-primary:hover {
  background: #1d1d1f;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30);
}
.vl-btn-primary:active, .vl-btn-light-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.vl-btn-secondary, .vl-btn-light-secondary {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.85);
}
.vl-btn-secondary:hover, .vl-btn-light-secondary:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

/* Placeholder de imagen pendiente (se sustituye por renders generados después).
   Uso: <div class="vl-ph"><span>IMAGEN: descripción de lo que va aquí</span></div> */
.vl-ph {
  background: linear-gradient(160deg, #F6F6F8 0%, #ECECEF 100%);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.vl-ph span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9a9aa0;
  font-weight: 500;
  max-width: 300px;
  line-height: 1.6;
}

@keyframes vl-slow-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes vl-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Gentle fade/slide-in for rotating content (mosaic, carousels) */
@keyframes vl-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.vl-fade { animation: vl-fade-up 640ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Agent images that sit on a matching orb/panel: feather the edges so the
   render's light background dissolves into the container (no visible box). */
.vl-agent-img {
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 50% 48%, #000 52%, transparent 92%);
  mask-image: radial-gradient(ellipse 80% 82% at 50% 48%, #000 52%, transparent 92%);
}

/* Large floating orb for the agent detail image (matches the render bg so the
   backdrop disappears and the robot appears to float). */
.vl-orb {
  position: relative;
  border-radius: 46px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #eceef2 88%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.12), inset 0 2px 6px rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* subtle rounded rim highlight so the orb reads as glass */
.vl-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Floating glass bubble that holds an agent image */
.vl-bubble {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #eef0f4 82%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12), inset 0 2px 5px rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease;
}

/* Single-bar auto-scrolling carousel (marquee) */
@keyframes vl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.vl-marquee {
  display: flex;
  gap: 40px;
  width: max-content;
  align-items: flex-start;
  animation: vl-marquee 60s linear infinite;
  will-change: transform;      /* promote to its own compositor layer */
  backface-visibility: hidden;
}
.vl-marquee:hover { animation-play-state: paused; }
.vl-marquee-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.vl-marquee-item:hover .vl-bubble { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.18), inset 0 2px 5px rgba(255,255,255,0.95); }

/* ---- GTA-style radial agent selector wheel ---- */
.vl-wheel {
  position: relative;
  /* La rueda vive en la primera pantalla junto al título: se dimensiona por
     la altura del viewport (header + título + respiros ≈ 230px) para llenar
     el espacio disponible sin desbordar, con tope generoso en monitores altos. */
  width: min(92vw, calc(100vh - 230px), 880px);
  aspect-ratio: 1;
  margin: 0 auto;
}
/* Dark disc behind the slices — shows in the gaps between wedges */
.vl-wheel-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #1c1c20 0%, #0a0a0c 92%);
  box-shadow: 0 44px 96px rgba(0, 0, 0, 0.42), inset 0 2px 4px rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* Each pie slice: full-wheel element clipped to a wedge at the top (clip-path
   set inline per slice count), rotated into place. Holds the agent image/video
   which fills the whole wedge. Scales about the wheel centre on hover. */
.vl-slice {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), filter 300ms ease;
}
/* Upright agent label (image + name) — visual only, clicks fall to the slice */
.vl-wheel-label {
  position: absolute;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.vl-wheel-label .vl-bubble { border: 1px solid rgba(255, 255, 255, 0.9); }
.vl-wheel-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #14151b;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
/* Center hub — shows the hovered agent + call to action */
.vl-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  height: 30%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px rgba(12, 14, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ============================================================
   RESPONSIVE — tablet + móvil. Los layouts usan estilos inline
   (mayor especificidad), por eso estas reglas usan !important.
   ============================================================ */
@media (max-width: 900px) {
  /* Grids multi-columna → apilados */
  .vl-r-2 { grid-template-columns: 1fr !important; }
  .vl-r-3 { grid-template-columns: 1fr 1fr !important; }
  .vl-r-prox { grid-template-columns: 1fr !important; }
  .vl-r-footer { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }

  /* Ficha de agente (contratar): imagen arriba, contenido abajo */
  .vl-detalle-main { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .vl-detalle-media {
    position: static !important; top: auto !important;
    height: 62vh !important; min-height: 320px !important;
  }
  .vl-detalle-side { padding: 40px 24px 96px !important; }
  .vl-howitworks { grid-template-columns: 1fr !important; }

  /* Menos padding lateral en secciones anchas */
  .vl-pad-lg { padding-left: 22px !important; padding-right: 22px !important; }
}

@media (max-width: 560px) {
  /* Hub de la rueda en móvil: hub un poco más amplio y textos compactos
     para que "Elige tu agente" + hint quepan sin desbordar el círculo */
  .vl-wheel-hub { width: 36%; height: 36%; padding: 4%; }
  .vl-wheel-hub > div:nth-child(1) { display: none; }
  .vl-wheel-hub > div:nth-child(2) { font-size: 13px !important; }
  .vl-wheel-hub > div:nth-child(3) { font-size: 10px !important; margin-top: 3px !important; }

  .vl-r-3 { grid-template-columns: 1fr !important; }
  .vl-r-footer { grid-template-columns: 1fr !important; }
  .vl-r-2sm { grid-template-columns: 1fr !important; }
}

/* ---- Heros: evitar desbordes y apilar CTAs en móvil ----
   Los h1/p son flex-items sin ancho: se dimensionan a su contenido y
   desbordan. width:100% les da un ancho definido para que envuelvan. ---- */
@media (max-width: 640px) {
  .vl-hero { padding-left: 20px !important; padding-right: 20px !important; max-width: 100% !important; }
  .vl-hero > * { max-width: 100% !important; }
  .vl-hero h1 {
    width: 100% !important; max-width: 100% !important;
    font-size: clamp(30px, 8.5vw, 46px) !important; line-height: 1.08 !important;
    overflow-wrap: break-word; word-break: break-word;
  }
  .vl-hero p { width: 100% !important; max-width: 100% !important; font-size: clamp(15px, 4.4vw, 19px) !important; }
  .vl-hero-cta { flex-direction: column !important; width: 100% !important; max-width: 340px !important; margin: 0 auto !important; }
  .vl-hero-cta > a { width: 100% !important; box-sizing: border-box; text-align: center; }
  .vl-scene-btn { padding-left: 24px !important; padding-right: 24px !important; }
}

.vl-wordmark {
  display: inline-block;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.065em;
  word-spacing: 0.16em;
  transform: scaleX(0.91);
  transform-origin: left center;
  white-space: nowrap;
  color: #050505;
}
.vl-wordmark-mobile { font-size: 15px; transform-origin: center center; }

.vl-home-fixed-hero {
  min-height: 720px;
  height: 100vh;
  padding: 86px clamp(24px, 5vw, 76px) 36px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #fff;
}
.vl-home-fixed-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.995) 40%, rgba(255,255,255,0.90) 50%, rgba(255,255,255,0.16) 69%, rgba(255,255,255,0) 100%);
}
.vl-home-fixed-copy { position: relative; z-index: 3; max-width: 610px; }
.vl-home-fixed-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(48px, 5.5vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 600;
  color: #080808;
}
.vl-home-fixed-copy p {
  max-width: 550px;
  margin: 0 0 12px;
  color: #363636;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}
.vl-home-agent-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #fafafa;
}
.vl-home-agent-slide {
  position: absolute;
  inset: 0;
  display: block;
}
.vl-home-agent-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  animation: vl-stage-reveal 700ms ease;
}
@keyframes vl-stage-reveal {
  from { opacity: 0.12; }
  to { opacity: 1; }
}
.vl-home-stage-footer {
  position: absolute;
  z-index: 4;
  left: auto;
  right: clamp(24px, 4vw, 64px);
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.vl-home-active-agent {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #111;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 7px 24px rgba(0,0,0,0.10);
}
.vl-home-active-agent i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.vl-home-active-agent b { font-weight: 600; color: #666; margin-left: 6px; }
.vl-home-stage-dots { display: flex; gap: 7px; align-items: center; }
.vl-home-stage-dots button {
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 350ms ease, background 350ms ease;
}
.vl-agent-motion-layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 28px;
  background: linear-gradient(135deg, #f7f7f8, #fff);
  border: 1px solid rgba(0,0,0,0.08);
}
.vl-agent-motion-copy {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 0;
}
.vl-agent-motion-link {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.vl-agent-motion-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.08);
}
.vl-agent-motion-frame > img,
.vl-agent-motion-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vl-agent-motion-frame > video { z-index: 1; }
@media (max-width: 1100px) {
  .vl-home-fixed-hero { min-height: 100vh; padding-top: 118px; }
  .vl-home-fixed-copy { max-width: 760px; }
  .vl-agent-motion-layout { grid-template-columns: 1fr; }
  .vl-agent-motion-copy { min-height: auto; gap: 32px; }
}
@media (max-width: 620px) {
  .vl-home-fixed-hero { padding: 104px 16px 96px; min-height: 100svh; }
  .vl-home-fixed-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.93) 48%, rgba(255,255,255,0.44) 70%, rgba(255,255,255,0.12) 100%);
  }
  .vl-home-fixed-copy { text-align: center; }
  .vl-home-fixed-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .vl-home-fixed-copy p { font-size: 16px; }
  .vl-home-fixed-copy .vl-hero-cta { justify-content: center; }
  .vl-home-agent-slide > img { object-position: right center !important; }
  .vl-home-stage-footer { left: 16px; right: 16px; bottom: 18px; align-items: flex-end; }
  .vl-home-active-agent b { display: none; }
  .vl-home-stage-dots { max-width: 120px; justify-content: flex-end; flex-wrap: wrap; }
  .vl-agent-motion-layout { padding: 24px 18px; border-radius: 20px; gap: 26px; }
  .vl-agent-motion-frame { border-radius: 16px; }
}

/* Character-led heroes: the desktop copy side follows each composition.
   On small screens the copy becomes a centered top block and the render
   remains the visual field beneath it. */
@media (max-width: 800px) {
  .vl-home-hero-copy,
  .vl-agent-hero-copy {
    left: 20px !important;
    right: 20px !important;
    top: 72px !important;
    bottom: auto !important;
    width: auto !important;
    padding-top: 0 !important;
    align-items: center !important;
    text-align: center !important;
  }
  .vl-home-hero-copy h1,
  .vl-agent-hero-copy h1 {
    max-width: 560px !important;
  }
  .vl-home-hero-copy p,
  .vl-agent-hero-copy p {
    width: 100% !important;
    max-width: 520px !important;
    overflow-wrap: break-word;
    white-space: normal !important;
  }
  .vl-agent-hero-shell {
    height: 940px !important;
    min-height: 940px !important;
  }
  .vl-agent-hero-media {
    object-fit: contain !important;
    object-position: center 50% !important;
  }
  .vl-agent-hero-commerce {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 0 16px 28px !important;
    overflow: hidden;
  }
  .vl-agent-hero-metrics {
    width: 100% !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
    margin-bottom: 20px !important;
  }
  .vl-agent-hero-metrics > div {
    min-width: 0 !important;
    overflow: hidden;
  }
  .vl-agent-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .vl-agent-hero-actions > a {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    text-align: center;
  }
}

/* ---- Reduced-motion: respect users who ask for less animation ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .vl-character-video { display: none !important; }
}

/* ---- Character catalog ---- */
.vl-agent-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.vl-agent-catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 28px;
  background: rgba(255,255,255,0.82);
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 240ms ease, box-shadow 280ms ease;
}
.vl-agent-catalog-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.vl-agent-catalog-media img,
.vl-agent-catalog-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.22,1,0.36,1);
}
.vl-agent-catalog-card:hover .vl-agent-catalog-media img,
.vl-agent-catalog-card:hover .vl-agent-catalog-media video {
  transform: scale(1.025);
}
.vl-agent-catalog-orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 280ms ease, transform 420ms cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.vl-agent-catalog-card:hover .vl-agent-catalog-orbit {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 1100px) {
  .vl-agent-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .vl-agent-catalog-shell { padding-left: 16px !important; padding-right: 16px !important; }
  .vl-agent-catalog-grid { grid-template-columns: 1fr; }
}
