/* Chat de preguntas frecuentes: botón flotante + panel minimizable. */
/* Encima del botón "Ganadores" (abajo a la izquierda); "Enviar mi registro" queda a la derecha. */
.faq-chat-launcher{position:fixed;z-index:25;left:18px;bottom:calc(84px + env(safe-area-inset-bottom));display:inline-flex;align-items:center;gap:10px;min-height:54px;padding:0 22px 0 16px;border:2px solid #155F2E;border-radius:40px;background:#0A1A0F;color:#F5FFE8;font:700 .9rem Montserrat,Arial,sans-serif;cursor:pointer;box-shadow:0 5px 0 #155F2E;transition:transform .2s}
.faq-chat-launcher:hover{transform:translateY(-3px)}
.faq-chat-launcher:focus-visible,.faq-chat button:focus-visible,.faq-chat input:focus-visible,.faq-chat a:focus-visible{outline:3px solid #6BE619;outline-offset:2px}
.faq-chat-launcher .faq-chat-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#FFE810;color:#0A1A0F;font-size:1rem}
.faq-chat-launcher[aria-expanded="true"]{display:none}
.faq-chat{position:fixed;z-index:40;left:24px;bottom:calc(20px + env(safe-area-inset-bottom));width:min(380px,calc(100vw - 48px));height:min(580px,calc(100dvh - 40px));display:flex;flex-direction:column;background:#F5FFE8;color:#0A1A0F;border:2px solid #155F2E;border-radius:20px;box-shadow:0 18px 50px rgba(10,26,15,.35);overflow:hidden;font-family:Montserrat,Arial,sans-serif;animation:faq-chat-in .2s ease both}
.faq-chat[hidden]{display:none}
@keyframes faq-chat-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.faq-chat-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 18px;background:#155F2E;color:#F5FFE8}
.faq-chat-head .faq-chat-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;background:#FFE810;color:#0A1A0F;font-size:1.1rem}
.faq-chat-head div{flex:1;min-width:0}
.faq-chat-head strong{display:block;font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:1.45rem;line-height:1;letter-spacing:.02em}
.faq-chat-head span{font-size:.7rem;opacity:.85}
.faq-chat-min{flex:none;width:40px;height:40px;border:1px solid #F5FFE860;border-radius:50%;background:none;color:#F5FFE8;font-size:1.3rem;line-height:1;cursor:pointer}
.faq-chat-min:hover{background:#ffffff1a}
.faq-chat-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px;display:flex;flex-direction:column;gap:10px}
.faq-chat-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:.84rem;line-height:1.55;overflow-wrap:anywhere}
.faq-chat-msg p{margin:0}.faq-chat-msg p+p{margin-top:6px}
.faq-chat-msg.bot{align-self:flex-start;background:#fff;border:1px solid #155F2E30;border-bottom-left-radius:4px}
.faq-chat-msg.bot strong{display:block;margin-bottom:5px;color:#155F2E;font-size:.8rem}
.faq-chat-msg.user{align-self:flex-end;background:#155F2E;color:#F5FFE8;border-bottom-right-radius:4px}
.faq-chat-links{display:flex;flex-direction:column;gap:6px;margin-top:9px}
.faq-chat-links a{display:inline-block;align-self:flex-start;color:#0A1A0F;background:#FFE810;border-radius:99px;padding:7px 13px;font-size:.76rem;font-weight:700;text-decoration:none}
.faq-chat-options{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.faq-chat-options button{max-width:100%;text-align:left;border:1px solid #155F2E;border-radius:14px;background:#fff;color:#155F2E;padding:9px 13px;font:600 .8rem/1.35 Montserrat,Arial,sans-serif;cursor:pointer}
.faq-chat-options button:hover{background:#155F2E;color:#fff}
.faq-chat-typing{align-self:flex-start;display:flex;gap:4px;padding:13px 15px;background:#fff;border:1px solid #155F2E30;border-radius:16px}
.faq-chat-typing i{width:7px;height:7px;border-radius:50%;background:#155F2E;animation:faq-chat-dot 1s infinite ease-in-out}
.faq-chat-typing i:nth-child(2){animation-delay:.15s}.faq-chat-typing i:nth-child(3){animation-delay:.3s}
@keyframes faq-chat-dot{0%,80%,100%{opacity:.25}40%{opacity:1}}
.faq-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #155F2E30;background:#fff}
.faq-chat-form input{flex:1;min-width:0;border:1px solid #155F2E;border-radius:99px;padding:11px 15px;font:500 .85rem Montserrat,Arial,sans-serif;color:#0A1A0F;background:#fff}
.faq-chat-form button{flex:none;border:0;border-radius:99px;background:#FFE810;color:#0A1A0F;padding:0 16px;font:700 .8rem Montserrat,Arial,sans-serif;cursor:pointer}
.faq-chat-form button:disabled{opacity:.5;cursor:wait}
body:has(dialog[open]) .faq-chat-launcher{visibility:hidden}
@media(max-width:800px){
.faq-chat-launcher{left:14px;bottom:calc(80px + env(safe-area-inset-bottom));width:56px;height:56px;padding:0;justify-content:center;border-radius:50%}
.faq-chat-launcher .faq-chat-label{white-space:normal}
.faq-chat-launcher .faq-chat-icon{width:auto;height:auto;background:none;color:#FFE810;font-size:1.4rem}
.faq-chat{left:0;right:0;bottom:0;width:100%;height:min(82dvh,640px);border-radius:20px 20px 0 0;border-width:2px 0 0}
}
@media(prefers-reduced-motion:reduce){.faq-chat,.faq-chat-launcher{animation:none;transition:none}.faq-chat-typing i{animation:none;opacity:.6}}


.tugringa-float {
  position: fixed;
  z-index: 90;
  inset-inline-end: max(.75rem, env(safe-area-inset-right));
  inset-block-end: max(.75rem, env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: .5rem;
}
.tugringa-float__actions {
  display: grid;
  justify-items: end;
  gap: .5rem;
}
.tugringa-float__toggle { display: none; }
.tugringa-float :is(.winners-open, .faq-chat-launcher) {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: auto;
  min-height: 44px;
  padding: 0 .85rem;
  border: 1px solid var(--atg-neon);
  border-radius: var(--r-pill);
  background: var(--atg-forest);
  color: white;
  font: 700 .875rem/1.15 var(--font-body);
  box-shadow: 0 4px 12px rgb(0 0 0 / .32);
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.tugringa-float .winners-open {
  background: var(--atg-yellow);
  border-color: var(--atg-yellow);
  color: var(--text-on-accent);
}
.tugringa-float svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .tugringa-float :is(.winners-open, .faq-chat-launcher):hover {
    transform: none;
    background: var(--atg-neon);
    color: var(--text-on-accent);
  }
}
.faq-chat {
  z-index: 110;
  inset-inline: auto max(.75rem, env(safe-area-inset-right));
  inset-block-end: calc(max(.75rem, env(safe-area-inset-bottom)) + 6.5rem);
  width: min(24rem, calc(100% - 1.5rem));
  height: min(36rem, calc(100dvh - 8rem));
  border: 2px solid var(--atg-forest);
  border-radius: var(--r-lg);
  color-scheme: light;
}
@media (max-width: 600px) {
  /* Alinea los accesos flotantes con el margen lateral del header. */
  .tugringa-float {
    inset-inline-end: max(var(--gutter), env(safe-area-inset-right));
  }

  .tugringa-float__toggle:not([hidden]) {
    display: grid;
    place-items: center;
    grid-row: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--atg-neon);
    border-radius: 50%;
    background: var(--atg-forest);
    color: white;
    box-shadow: 0 4px 12px rgb(0 0 0 / .32);
  }
  .tugringa-float__toggle:not([hidden])[aria-expanded="false"] + .tugringa-float__actions { display: none; }
  .tugringa-float__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
  .tugringa-float :is(.winners-open, .faq-chat-launcher) {
    gap: .35rem;
    padding-inline: .55rem;
    font-size: .75rem;
  }
  .faq-chat {
    inset-block-end: calc(max(.75rem, env(safe-area-inset-bottom)) + 3.25rem);
    height: min(36rem, calc(100dvh - 5rem));
  }
  body:has(.tugringa-float) .hero__ctas { margin-bottom: 3.25rem; }
  body:has(.tugringa-float) .footer { padding-bottom: 3.75rem; }
}
