/* =========================================================================
     AGENTE ILUSTA — burbuja + panel con línea de tiempo y chat
     Todo el bloque vive dentro de #agente-ilusta para no chocar con los
     estilos del sitio. El panel se arma recién al abrirlo por primera vez.
     ========================================================================= */

  #agente-ilusta{
    --negro:    #08080A;
    --hueso:    #ECE8E1;
    --rojo:     #D91F26;
    --rojo-osc: #7A1013;
    --oro:      #F5B301;
    --oro-osc:  #A87400;

    --verde:      #25D366;
    --verde-osc:  #075E54;
    --violeta:    #7C4DFF;
    --fondo-chat: #F0F2F5;
    --tinta:      #191C1E;

    --u: 120px;            /* ancho del cubo; lo calcula el guion */
    --sep: calc(var(--u) * .137);

    font-family:'Inter', system-ui, sans-serif;
  }
  #agente-ilusta *{ box-sizing:border-box; margin:0; padding:0; }

  /* Separación de la burbuja respecto al borde. WordPress las reescribe
     encima según lo que se elija en el panel. */
  #agente-ilusta{ --ai-lado:22px; --ai-abajo:22px; }

  #agente-ilusta.ai-izquierda .burbuja,
  #agente-ilusta.ai-izquierda .panel{
    left:var(--ai-lado); right:auto;
  }

  /* El codigo y el correo del mensaje de transferencia, con su boton al lado.
     El dato va en una caja con fondo para que se lea como un dato y no como
     parte de la frase, sin usar ninguna marca dentro del texto. */
  #agente-ilusta .globo .copiable{
    display:inline-flex; align-items:center; gap:8px;
    max-width:100%; flex-wrap:wrap;
  }
  #agente-ilusta .globo .copiable .dato{
    padding:2px 7px; border-radius:7px;
    background:rgba(0,0,0,.06);
    font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size:14px; word-break:break-all;
  }
  #agente-ilusta .globo .copiar{
    font:inherit; font-size:12px; line-height:1;
    padding:5px 10px; border-radius:999px;
    border:1px solid rgba(0,0,0,.25);
    background:transparent; color:inherit;
    cursor:pointer; opacity:.8; white-space:nowrap;
  }
  #agente-ilusta .globo .copiar:hover{ opacity:1; }
  #agente-ilusta .globo .copiar.copiado{
    opacity:1; border-color:#0b6b33; color:#0b6b33;
  }

  /* El recuadro que pide el correo para avisar cuando el pago se apruebe.
     Va dentro del hilo, como un mensaje mas, y no como ventana encima de la
     pagina: encima seria una exigencia, y esto se puede cerrar sin que pase
     nada. El enlace sigue llegando por el chat igual. */
  #agente-ilusta .pedir-correo{
    position:relative;
    align-self:flex-start;
    max-width:min(86%, 420px);
    margin:2px 0 4px;
    padding:14px 16px 12px;
    background:#fff; color:#15241c;
    border-radius:14px 14px 14px 4px;
    box-shadow:0 2px 10px rgba(0,0,0,.14);
    font-size:14px; line-height:1.4;
  }
  #agente-ilusta .pedir-correo p{ margin:0 0 10px; }
  #agente-ilusta .pedir-correo label{
    display:block; font-size:12px; font-weight:600;
    margin:0 0 3px; opacity:.75;
  }
  #agente-ilusta .pedir-correo input{
    width:100%; margin:0 0 10px;
    padding:9px 11px;
    font:inherit; font-size:15px;    /* 15px o mas: menos, y el iPhone hace zoom */
    color:inherit; background:#f4f6f5;
    border:1px solid rgba(0,0,0,.16); border-radius:9px;
  }
  #agente-ilusta .pedir-correo input:focus{
    outline:none; border-color:var(--verde); background:#fff;
  }
  #agente-ilusta .pedir-correo .nota{
    font-size:12px; opacity:.6; margin:-4px 0 10px;
  }
  #agente-ilusta .pedir-correo .guarda{
    width:100%; padding:10px 14px;
    font:inherit; font-weight:600;
    color:#fff; background:var(--verde);
    border:none; border-radius:999px; cursor:pointer;
  }
  #agente-ilusta .pedir-correo .guarda:disabled{ opacity:.6; cursor:default; }
  #agente-ilusta .pedir-correo .recado{
    margin:8px 0 0; font-size:13px; color:#b32d2e; min-height:1px;
  }
  #agente-ilusta .pedir-correo .cierra{
    position:absolute; top:6px; right:8px;
    width:26px; height:26px;
    display:flex; align-items:center; justify-content:center;
    background:none; border:none; border-radius:50%;
    font:inherit; font-size:18px; line-height:1;
    color:#15241c; opacity:.4; cursor:pointer;
  }
  #agente-ilusta .pedir-correo .cierra:hover{ opacity:.9; background:rgba(0,0,0,.07); }

  /* ---------- Burbuja ---------- */
  #agente-ilusta .burbuja{
    position:fixed; z-index:2147483000;
    right:var(--ai-lado); left:auto; bottom:var(--ai-abajo);
    width:64px; height:64px;
    display:flex; align-items:center; justify-content:center;
    background:var(--verde);
    border:none; border-radius:50%;
    box-shadow:0 8px 24px rgba(0,0,0,.35);
    cursor:pointer;
    transition:transform .18s;
  }
  #agente-ilusta .burbuja:hover{ transform:scale(1.06); }
  #agente-ilusta .burbuja svg{ width:32px; height:32px; color:#fff; }
  #agente-ilusta.abierto .burbuja{ display:none; }

  /* ---------- El saludo que sale al lado de la burbuja ----------
     Reemplaza al punto rojo. El punto decía "tienes algo sin leer", que no era
     cierto: nadie le había escrito nada a nadie. Esto dice lo que sí es cierto,
     que ahí hay alguien a quien preguntarle.

     Va ARRIBA de la burbuja y no al lado: al lado se sale de la pantalla en un
     teléfono angosto o choca con el borde. */
  #agente-ilusta .saludo{
    position:fixed; z-index:2147483000;
    right:var(--ai-lado, 22px); left:auto;
    bottom:calc(var(--ai-abajo, 22px) + 76px);
    max-width:min(62vw, 210px);
    display:flex; align-items:center; gap:6px;
    padding:9px 10px 9px 13px;
    background:#fff; color:#15241c;
    border-radius:16px 16px 4px 16px;
    box-shadow:0 6px 20px rgba(0,0,0,.28);
    font-size:14px; line-height:1.25;
    opacity:0; transform:translateY(6px) scale(.96);
    pointer-events:none;
    transition:opacity .25s, transform .25s;
  }
  /* Hace falta de verdad: este "display:flex" le gana al atributo hidden, y sin
     esta línea el saludo seguía ocupando su sitio —invisible, pero tapando los
     clics justo encima del botón del chat. */
  #agente-ilusta .saludo[hidden]{ display:none; }
  #agente-ilusta .saludo.a-la-vista{ opacity:1; transform:none; pointer-events:auto; }
  #agente-ilusta.ai-izquierda .saludo{
    left:var(--ai-lado, 22px); right:auto;
    border-radius:16px 16px 16px 4px;
  }
  /* El texto abre el chat: quien lee "¿En qué te ayudo?" y toca, quiere hablar. */
  #agente-ilusta .saludo .texto{
    font:inherit; text-align:left;
    background:none; border:none; padding:0; margin:0;
    color:inherit; cursor:pointer;
  }
  #agente-ilusta .saludo .descartar{
    flex:none; width:20px; height:20px;
    display:flex; align-items:center; justify-content:center;
    background:none; border:none; border-radius:50%;
    color:#15241c; opacity:.45; cursor:pointer;
    font:inherit; font-size:15px; line-height:1;
  }
  #agente-ilusta .saludo .descartar:hover{ opacity:.9; background:rgba(0,0,0,.07); }
  /* con el chat abierto no pinta nada */
  #agente-ilusta.abierto .saludo{ display:none; }
  /* quien prefiere no ver animaciones, no las ve */
  @media (prefers-reduced-motion: reduce){
    #agente-ilusta .saludo{ transition:none; }
  }

  /* ---------- Panel ---------- */
  #agente-ilusta .telon{
    position:fixed; inset:0; z-index:2147482999;
    background:rgba(0,0,0,.55);
    opacity:0; pointer-events:none;
    transition:opacity .22s;
  }
  #agente-ilusta.abierto .telon{ opacity:1; pointer-events:auto; }

  #agente-ilusta .panel{
    position:fixed; z-index:2147483001;
    right:var(--ai-lado); left:auto; bottom:var(--ai-abajo);
    width:min(92vw, 940px);
    height:min(90vh, 860px);
    height:min(90dvh, 860px);   /* dvh sigue a la barra de direcciones del móvil */
    display:flex; flex-direction:column;
    background:var(--fondo-chat);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 24px 70px rgba(0,0,0,.5);
    transform:translateY(24px) scale(.97);
    opacity:0; pointer-events:none;
    transition:opacity .22s, transform .22s;
  }
  #agente-ilusta.abierto .panel{ opacity:1; transform:none; pointer-events:auto; }

  /* en teléfono ocupa el 90% de la pantalla, centrado */
  @media (max-width:640px){
    #agente-ilusta .panel{
      right:5vw; left:5vw;
      bottom:5vh; bottom:5dvh;
      width:90vw;
      height:90vh; height:90dvh;
      border-radius:16px;
    }
    #agente-ilusta .burbuja{
      right:var(--ai-lado); left:auto;
      bottom:calc(var(--ai-abajo) + env(safe-area-inset-bottom));
    }
    #agente-ilusta.ai-izquierda .burbuja{
      left:var(--ai-lado); right:auto;
    }
    /* en el teléfono el panel se centra igual, esté la burbuja donde esté */
    #agente-ilusta.ai-izquierda .panel{
      right:5vw; left:5vw;
    }
    /* el pulgar necesita blanco: mínimo 44px en los controles */
    #agente-ilusta .flecha{ min-width:44px; min-height:44px; }
    #agente-ilusta .ficha{ padding:10px 16px; }
    #agente-ilusta .cerrar{ width:44px; height:44px; }
  }

  /* ---------- Cabecera ---------- */
  #agente-ilusta .cabecera{
    flex:none; height:60px;
    display:flex; align-items:center; gap:12px;
    padding:0 14px;
    background:var(--verde-osc);
    color:#fff;
  }
  #agente-ilusta .cabecera .foto{
    width:40px; height:40px; flex:none;
    border-radius:50%;
    background:linear-gradient(135deg, var(--violeta), var(--verde));
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:16px;
    box-shadow:0 0 0 2px rgba(255,255,255,.25);
  }
  #agente-ilusta .cabecera .quien{ flex:1; min-width:0; }
  #agente-ilusta .cabecera .nombre{ font-size:16px; font-weight:600; line-height:20px; }
  #agente-ilusta .cabecera .estado{ font-size:12px; opacity:.8; display:flex; align-items:center; gap:5px; }
  #agente-ilusta .cabecera .estado i{
    width:7px; height:7px; border-radius:50%; background:var(--verde); display:block;
  }
  #agente-ilusta .cerrar{
    width:38px; height:38px; flex:none;
    display:flex; align-items:center; justify-content:center;
    background:transparent; border:none; border-radius:50%;
    color:#fff; cursor:pointer;
  }
  #agente-ilusta .cerrar:hover{ background:rgba(255,255,255,.14); }
  #agente-ilusta .cerrar svg{ width:22px; height:22px; }

  /* =========================================================================
     CHAT
     ========================================================================= */
  #agente-ilusta .hilo{
    flex:1; min-height:0;
    overflow-y:auto;
    padding:14px 16px 6px;
    display:flex; flex-direction:column; gap:8px;
    background:var(--fondo-chat);
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  #agente-ilusta .sello{
    align-self:center;
    margin:4px 0 8px;
    padding:4px 12px;
    background:rgba(0,0,0,.07);
    border-radius:999px;
    font-size:11px; font-weight:700; letter-spacing:.05em;
    text-transform:uppercase; color:#5a6570;
  }
  #agente-ilusta .globo{
    max-width:min(78%, 560px);
    padding:9px 13px;
    border-radius:16px;
    font-size:15px; line-height:21px;
    color:var(--tinta);
    white-space:pre-wrap; word-wrap:break-word;
    animation:ai-entra .2s ease-out;
  }
  @keyframes ai-entra{
    from{ opacity:0; transform:translateY(6px); }
    to  { opacity:1; transform:none; }
  }
  #agente-ilusta .globo .hora{
    display:block; margin-top:3px;
    font-size:11px; opacity:.55; text-align:right;
  }
  #agente-ilusta .globo.agente{
    align-self:flex-start;
    background:#fff;
    border:1px solid rgba(124,77,255,.35);
    box-shadow:0 2px 6px rgba(0,0,0,.05), 0 0 0 3px rgba(124,77,255,.06);
    border-bottom-left-radius:5px;
  }
  #agente-ilusta .globo.mio{
    align-self:flex-end;
    background:var(--verde);
    color:#0a2e18;
    border-bottom-right-radius:5px;
  }
  #agente-ilusta .globo.mio .hora{ color:#0a2e18; opacity:.6; }

  #agente-ilusta .pensando{
    align-self:flex-start;
    display:flex; gap:5px;
    padding:12px 15px;
    background:#fff; border:1px solid rgba(124,77,255,.35);
    border-radius:16px; border-bottom-left-radius:5px;
  }
  #agente-ilusta .pensando i{
    width:8px; height:8px; border-radius:50%;
    background:var(--violeta); opacity:.4;
    animation:ai-latir 1.2s infinite;
  }
  #agente-ilusta .pensando i:nth-child(2){ animation-delay:.15s; }
  #agente-ilusta .pensando i:nth-child(3){ animation-delay:.3s; }
  @keyframes ai-latir{
    0%,100%{ opacity:.35; transform:translateY(0); }
    50%    { opacity:1;   transform:translateY(-4px); }
  }

  /* ---------- Preguntas sugeridas ---------- */
  #agente-ilusta .fichas{
    flex:none; position:relative;
    overflow-x:auto; overflow-y:hidden;
    padding:8px 0;
    background:var(--fondo-chat);
    scrollbar-width:none;
    overscroll-behavior-x:contain;
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image:linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  #agente-ilusta .fichas::-webkit-scrollbar{ display:none; }
  #agente-ilusta .tira-fichas{
    display:flex;
    width:max-content;
    padding-left:16px;
  }
  #agente-ilusta .ficha{
    flex:none;
    margin-right:8px;
    padding:8px 15px;
    background:transparent;
    border:1.5px solid var(--verde);
    border-radius:999px;
    font-size:14px; font-weight:500; color:#0b6b33;
    white-space:nowrap; cursor:pointer;
    transition:background .15s;
  }
  #agente-ilusta .ficha:hover{ background:rgba(37,211,102,.12); }

  /* ---------- Barra de escritura ---------- */
  #agente-ilusta .escribir{
    flex:none;
    display:flex; align-items:flex-end; gap:10px;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid #E0E0E0;
  }
  #agente-ilusta .escribir textarea{
    flex:1; resize:none;
    max-height:110px;
    padding:11px 15px;
    background:var(--fondo-chat);
    border:none; border-radius:22px;
    font-family:inherit; font-size:15px; line-height:21px;
    color:var(--tinta);
    outline:none;
  }
  #agente-ilusta .enviar{
    width:44px; height:44px; flex:none;
    display:flex; align-items:center; justify-content:center;
    background:var(--verde); border:none; border-radius:50%;
    color:#fff; cursor:pointer;
    transition:transform .12s, opacity .15s;
  }
  #agente-ilusta .enviar:active{ transform:scale(.92); }
  #agente-ilusta .enviar:disabled{ opacity:.35; cursor:default; }
  #agente-ilusta .enviar svg{ width:22px; height:22px; }

  @media (prefers-reduced-motion:reduce){
    #agente-ilusta *{ animation:none !important; }
  }

  /* ---------- Acceso al post del sorteo ---------- */
  /* Aparece solo en los minisorteos que ya ocurrieron: lleva al post donde se
     muestra al ganador. Es la prueba de que los premios se entregan. */
  #agente-ilusta .post{
    position:absolute; z-index:4;
    right:calc(var(--u) * -.07); top:calc(var(--u) * -.07);
    width:calc(var(--u) * .30); height:calc(var(--u) * .30);
    display:flex; align-items:center; justify-content:center;
    border-radius:50%;
    background:linear-gradient(135deg, #F5B301 0%, #D91F26 60%, #7A1013 100%);
    box-shadow:0 2px 7px rgba(0,0,0,.55);
    color:#fff;
    text-decoration:none;
    transition:transform .16s;
  }
  #agente-ilusta .post:hover{ transform:scale(1.12); }
  #agente-ilusta .post svg{ width:62%; height:62%; }
  /* los días apagados no invitan a nada */
  #agente-ilusta .dia.apagado .post{ display:none; }

  /* ---------- Día del sorteo mayor ---------- */
  /* El cubo crece, cambia a metal y se le pone el vehículo encima.
     La textura (grano y trama) es la misma de siempre: solo cambia el metal. */
  #agente-ilusta{
    --sorteo-escala: 1.30;

    /* oro de verdad: bandas de brillo y sombra, no un amarillo plano */
    --metal: linear-gradient(
      #FFF6D0 0%, #F9DE8C 12%, #EDB93F 30%,
      #C88A16 48%, #F5D468 62%, #E0A62A 78%, #9C6A08 100%);
    --metal-borde:  #3A2600;
    --metal-tinta:  #3A2600;
    --metal-halo:   rgba(245,179,5,.60);
    --metal-remache: rgba(58,38,0,.85);
  }

  /* plata brillante */
  #agente-ilusta.metal-plata{
    --metal: linear-gradient(
      #FFFFFF 0%, #EDF2F7 12%, #C3CDD8 30%,
      #8F9AA6 48%, #E6EDF4 62%, #AEB9C5 78%, #67707B 100%);
    --metal-borde:  #262C33;
    --metal-tinta:  #232930;
    --metal-halo:   rgba(214,230,245,.60);
    --metal-remache: rgba(30,36,42,.85);
  }

  #agente-ilusta .dia.sorteo .bloque{
    transform:scale(var(--sorteo-escala));
    background:
      var(--grano), var(--trama), var(--brillo),
      var(--metal);
    border-color:var(--metal-borde);
    color:var(--metal-tinta);
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,.28),
      inset 0 calc(var(--u) * .037) 0 rgba(255,255,255,.55),
      inset 0 calc(var(--u) * -.047) 0 rgba(0,0,0,.28),
      0 calc(var(--u) * .074) 0 rgba(0,0,0,.45),
      0 0 calc(var(--u) * .30) var(--metal-halo),
      0 calc(var(--u) * .115) calc(var(--u) * .18) rgba(0,0,0,.6);
  }
  /* los remaches siguen el metal elegido */
  #agente-ilusta .dia.sorteo .bloque::before,
  #agente-ilusta .dia.sorteo .bloque::after{
    background-image:
      radial-gradient(circle at calc(var(--u) * .116) calc(var(--u) * .047), var(--metal-remache) calc(var(--u) * .021), transparent calc(var(--u) * .026)),
      radial-gradient(circle at calc(100% - var(--u) * .116) calc(var(--u) * .047), var(--metal-remache) calc(var(--u) * .021), transparent calc(var(--u) * .026));
  }
  /* si el sorteo cae justo hoy, manda el tamaño del sorteo y no rebota */
  #agente-ilusta .dia.sorteo.hoy .bloque{
    animation:none;
    transform:scale(var(--sorteo-escala));
  }
  #agente-ilusta .dia.sorteo.elegido .bloque{ transform:scale(var(--sorteo-escala)); }

  #agente-ilusta .auto{
    position:absolute; left:50%;
    /* El video viene recortado al vehículo, sin márgenes vacíos, así que esta
       caja es el vehículo. Arranca por encima de lo que crece el cubo. */
    bottom:calc(100% + var(--u) * .40);
    width:calc(var(--u) * 2.09); margin-left:calc(var(--u) * -1.045);
    height:calc(var(--u) * .88);
    display:flex; align-items:flex-end; justify-content:center;
    pointer-events:none;
  }
  #agente-ilusta .auto video{
    width:100%; height:100%;
    object-fit:contain;
    filter:drop-shadow(0 calc(var(--u) * .06) calc(var(--u) * .09) rgba(0,0,0,.65));
  }
  #agente-ilusta .dia.apagado .auto{ display:none; }

  /* El marbete del día grande, del mismo porte que el de los minisorteos.
     No hace falta bajarlo: el cubo crece hacia arriba, su base no se mueve. */
  #agente-ilusta .marbete.es-final{ font-size:calc(var(--u) * .142); }

  /* =========================================================================
     LA VENTANA: minimizar, mover y cambiar de tamaño
     ========================================================================= */
  #agente-ilusta .minimizar{
    width:38px; height:38px; flex:none;
    display:flex; align-items:center; justify-content:center;
    background:transparent; border:none; border-radius:50%;
    color:#fff; cursor:pointer;
  }
  #agente-ilusta .minimizar:hover{ background:rgba(255,255,255,.14); }
  #agente-ilusta .minimizar svg{ width:20px; height:20px; }
  /* un ícono para achicar y otro para volver a agrandar */
  #agente-ilusta .minimizar .a-grande{ display:none; }
  #agente-ilusta.mini .minimizar .a-chico{ display:none; }
  #agente-ilusta.mini .minimizar .a-grande{ display:block; }

  /* --- minimizada --- */
  /* Sin telón y sin línea de tiempo: queda solo el chat, y la página de atrás
     se puede seguir usando. */
  #agente-ilusta.mini .telon{ display:none; }

  #agente-ilusta.mini .panel{
    /* la posición y el tamaño los pone el JavaScript, en píxeles */
    right:auto; bottom:auto;
    max-width:none;
    box-shadow:0 12px 40px rgba(0,0,0,.45);
  }
  /* mientras se arrastra no hay transiciones que la hagan sentir pesada */
  #agente-ilusta .panel.moviendo{ transition:none; }
  #agente-ilusta.mini .cabecera{ cursor:grab; touch-action:none; }
  #agente-ilusta.mini .panel.moviendo .cabecera{ cursor:grabbing; }

  /* el tirador de la esquina para cambiar el tamaño */
  #agente-ilusta .tirador{ display:none; }
  #agente-ilusta.mini .tirador{
    display:block; position:absolute; z-index:5;
    right:0; bottom:0; width:22px; height:22px;
    cursor:nwse-resize; touch-action:none;
    background:
      linear-gradient(135deg, transparent 50%, rgba(0,0,0,.22) 50%);
  }
  #agente-ilusta.mini .tirador::after{
    content:''; position:absolute; right:4px; bottom:4px;
    width:9px; height:9px;
    border-right:2px solid rgba(255,255,255,.85);
    border-bottom:2px solid rgba(255,255,255,.85);
  }

  /* en el teléfono la ventana grande se centra sola; minimizada, manda el
     JavaScript, así que hay que soltar esas medidas */
  @media (max-width:640px){
    #agente-ilusta.mini .panel,
    #agente-ilusta.mini.ai-izquierda .panel{
      right:auto; left:auto;
      width:auto; height:auto;
    }
  }

  /* ---------- Vitrina de premios ---------- */
  /* Cuando el agente quiere mostrarle los premios de un día al cliente, se
     ponen encima de la línea, grandes. Agrandar el carrusel en su sitio no se
     puede: la línea recorta lo que se sale. Se va sola a los segundos. */
  #agente-ilusta .vitrina{
    position:absolute; inset:0; z-index:6;
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    gap:calc(var(--u) * .10);
    padding:calc(var(--u) * .12) 12px;
    background:
      radial-gradient(70% 90% at 50% 45%, rgba(245,179,5,.16), rgba(245,179,5,0) 70%),
      linear-gradient(180deg, rgba(8,8,10,.94), rgba(8,8,10,.99));
    opacity:0; transform:scale(.94);
    transition:opacity .24s ease, transform .24s ease;
    pointer-events:none;
  }
  #agente-ilusta .vitrina.puesta{ opacity:1; transform:none; }

  #agente-ilusta .vitrina .cuando{
    font-family:'Titan One', 'Anton', sans-serif;
    text-transform:uppercase; letter-spacing:.04em;
    font-size:calc(var(--u) * .17);
    color:var(--oro);
  }
  #agente-ilusta .vitrina .cosas{
    display:flex; align-items:flex-end; justify-content:center;
    gap:calc(var(--u) * .22);
    flex-wrap:nowrap;
    width:100%;
  }
  #agente-ilusta .vitrina figure{
    display:flex; flex-direction:column; align-items:center;
    gap:calc(var(--u) * .05);
    min-width:0;
  }
  #agente-ilusta .vitrina img{
    width:auto; height:calc(var(--u) * .92);
    max-width:calc(var(--u) * 1.15);
    object-fit:contain;
    filter:drop-shadow(0 8px 14px rgba(0,0,0,.75));
  }
  #agente-ilusta .vitrina figcaption{
    font-family:'Barlow Condensed', sans-serif;
    font-size:calc(var(--u) * .14);
    line-height:1.1; text-align:center;
    color:var(--hueso);
    max-width:calc(var(--u) * 1.3);
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  #agente-ilusta .vitrina .pie{
    font-family:'Barlow Condensed', sans-serif;
    text-transform:uppercase; letter-spacing:.10em;
    font-size:calc(var(--u) * .12);
    color:rgba(236,232,225,.62);
  }

  /* en pantallas chicas los premios se achican antes que salirse */
  @media (max-width:640px){
    #agente-ilusta .vitrina .cosas{ gap:calc(var(--u) * .14); }
    #agente-ilusta .vitrina img{ height:calc(var(--u) * .74); }
    #agente-ilusta .vitrina figcaption{ font-size:calc(var(--u) * .12); }
  }


  /* una dirección dentro de un mensaje: que se note y que se pueda tocar */
  #agente-ilusta .globo a{
    color:var(--verde-osc, #0b6b4f);
    text-decoration:underline;
    text-underline-offset:2px;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  #agente-ilusta .globo.mio a{ color:#0a3d2c; }
  #agente-ilusta .globo a:hover{ text-decoration-thickness:2px; }

