/* ARGOS · mascota acompañante de sequitecsa.com (15-nov-2026, v2)
   Esquina inferior DERECHA, en lugar del botón flotante de WhatsApp (WhatsApp va en su menú).
   Animaciones = WebP animados con transparencia; flota suavemente con CSS. */
.argos-pet { position: fixed; right: 14px; bottom: 10px; z-index: 45; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 10px; pointer-events: none;
  opacity: 0; transform: translateY(40px) scale(.85); transition: opacity .6s ease, transform .8s cubic-bezier(.2,1.5,.4,1); }
.argos-pet.visible { opacity: 1; transform: none; }
.argos-pet.oculto { display: none; }

.argos-pet__btn { pointer-events: auto; position: relative; width: 143px; aspect-ratio: 928 / 1232; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); animation: argosFlota 3.6s ease-in-out infinite; transition: transform .25s; }
.argos-pet__btn:hover { transform: translateY(-4px) scale(1.05); }
.argos-pet__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity .35s ease; }
.argos-pet__btn img.on { opacity: 1; }
.argos-pet__btn::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: -2px; height: 12px; z-index: -1;
  background: radial-gradient(ellipse, rgba(0,212,255,.55), transparent 70%); animation: argosSombra 3.6s ease-in-out infinite; }
.argos-pet__btn:focus-visible { outline: 2px solid #00D4FF; outline-offset: 4px; }
@keyframes argosFlota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes argosSombra { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: .55; transform: scaleX(.8); } }

/* Indicador de chat (WhatsApp disponible) */
.argos-pet__chat { position: absolute; top: 10%; right: 2%; width: 30px; height: 30px; display: grid; place-items: center; background: #1fae5b; border-radius: 50% !important;
  box-shadow: 0 0 0 0 rgba(31,174,91,.6); animation: argosPulso 2.2s infinite; z-index: 2; pointer-events: none; }
.argos-pet__chat svg { width: 17px; height: 17px; fill: #fff; }
@keyframes argosPulso { 0% { box-shadow: 0 0 0 0 rgba(31,174,91,.6); } 70% { box-shadow: 0 0 0 12px rgba(31,174,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,174,91,0); } }

/* Globo de diálogo (a la izquierda de ARGOS) */
.argos-pet__globo { pointer-events: auto; position: relative; max-width: 280px; margin-bottom: 64px; background: #fff; color: #0E1E2E; padding: 14px 18px 16px 16px;
  font: 500 15px/1.45 "Barlow", sans-serif; border-right: 3px solid #1593D6; box-shadow: 0 14px 34px rgba(2,15,30,.35);
  opacity: 0; transform: translateX(10px) scale(.96); transform-origin: right bottom; transition: opacity .3s, transform .35s cubic-bezier(.2,1.4,.4,1); visibility: hidden; }
.argos-pet__globo.on { opacity: 1; transform: none; visibility: visible; }
.argos-pet__globo::before { content: ""; position: absolute; right: -11px; bottom: 18px; border: 8px solid transparent; border-left-color: #fff; border-right: 0; }
.argos-pet__globo b { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 900; font-size: 20px; text-transform: uppercase; color: #0E1E2E; margin-bottom: 2px; padding-right: 18px; }
.argos-pet__menu { display: grid; gap: 3px; margin-top: 10px; }
.argos-pet__menu[hidden] { display: none; }
.argos-pet__menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #EEF3F6; color: #0E1E2E; text-decoration: none; font-weight: 600; font-size: 14px; border-left: 2px solid transparent; }
.argos-pet__menu a:hover, .argos-pet__menu a:focus-visible { background: #0E1E2E; color: #fff; border-left-color: #00D4FF; }
.argos-pet__menu a.wa { background: #1fae5b; color: #fff; }
.argos-pet__menu a.wa:hover { background: #179149; border-left-color: #fff; }
.argos-pet__menu a.wa svg { width: 16px; height: 16px; fill: #fff; flex: none; }
.argos-pet__cerrar { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; border: 0; background: transparent; color: #5B6B7B; cursor: pointer; font-size: 18px; line-height: 1; }
.argos-pet__cerrar:hover { color: #0E1E2E; }

/* Si se oculta a ARGOS, queda un botón de WhatsApp clásico para no perder el contacto */
.argos-pet__volver { pointer-events: auto; position: fixed; right: 20px; bottom: 20px; z-index: 45; display: none; gap: 3px; }
.argos-pet.oculto + .argos-pet__volver { display: flex; }
.argos-pet__volver a, .argos-pet__volver button { width: 54px; height: 54px; display: grid; place-items: center; border: 0; cursor: pointer; }
.argos-pet__volver a { background: #1fae5b; }
.argos-pet__volver a svg { width: 26px; height: 26px; fill: #fff; }
.argos-pet__volver button { background: #0A2744; color: #fff; font: 900 13px "Barlow Condensed", sans-serif; letter-spacing: .02em; border: 1px solid rgba(90,200,245,.5); }

@media (max-width: 640px) {
  .argos-pet { right: 6px; bottom: 6px; }
  .argos-pet__btn { width: 97px; }
  .argos-pet__chat { width: 24px; height: 24px; }
  .argos-pet__chat svg { width: 13px; height: 13px; }
  .argos-pet__globo { max-width: calc(100vw - 122px); margin-bottom: 42px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .argos-pet__btn, .argos-pet__btn::after, .argos-pet__chat { animation: none; } }
@media print { .argos-pet, .argos-pet__volver { display: none !important; } }

/* Rebote al clic */
.argos-pet__btn.boing img.on { animation: argosBoing .45s cubic-bezier(.2,1.6,.4,1); transform-origin: 50% 100%; }
@keyframes argosBoing { 0% { transform: scale(1, 1); } 30% { transform: scale(1.12, .86); } 60% { transform: scale(.94, 1.08); } 100% { transform: scale(1, 1); } }
@media (prefers-reduced-motion: reduce) { .argos-pet__btn.boing img.on { animation: none; } }

/* Buscador de ARGOS */
.argos-pet__globo.buscando { max-width: 340px; }
.argos-pet__buscar input { width: 100%; padding: 10px 12px; border: 1px solid #c9d5df; font: inherit; font-size: 16px; color: #0E1E2E; background: #fff; }
.argos-pet__buscar input:focus { outline: 2px solid #1593D6; outline-offset: 0; border-color: #1593D6; }
.argos-pet__res { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; max-height: 46vh; overflow-y: auto; }
.argos-pet__res[hidden] { display: none; }
.argos-pet__menu .argos-pet__res a { display: block; padding: 8px 10px; background: #EEF3F6; border-left: 2px solid #1593D6; font-weight: 400; }
.argos-pet__res small { display: block; font-family: "Space Mono", monospace; font-size: 10px; color: #1593D6; }
.argos-pet__res a b { font-family: inherit; font-weight: 700; font-size: 14px; text-transform: none; margin: 1px 0; padding: 0; color: inherit; }
.argos-pet__res span { display: block; font-size: 12px; color: #44576a; line-height: 1.3; }
.argos-pet__menu .argos-pet__res a:hover span, .argos-pet__menu .argos-pet__res a:focus-visible span { color: #cfdbe6; }
.argos-pet__menu .argos-pet__res a:hover small, .argos-pet__menu .argos-pet__res a:focus-visible small { color: #5AC8F5; }
.argos-pet__menu .argos-pet__res a.wa small { color: #eafff2; }
.argos-pet .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Con resultados: se ocultan los accesos (vuelven al borrar la búsqueda), 2 líneas de detalle y nunca más alto que la pantalla */
.argos-pet__globo.buscando .argos-pet__menu > a { display: none; }
.argos-pet__globo.buscando { max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
.argos-pet__res { max-height: min(46vh, 330px); }
.argos-pet__res span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.argos-pet__globo.buscando { overflow-x: hidden; }
.argos-pet__globo.buscando .argos-pet__res { max-height: none; overflow: visible; }
