:root{
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e6e9ef;
  --brand: #091732;
  --wa: #25d366;
  --zoom1: #fd4401;
  --zoom2: #fd4401;
  --ok-bg: #ecfdf3;
  --ok-br: #86efac;
  --ok-tx: #166534;
  --ok-left: #16a34a;
  --err-bg: #fdecea;
  --err-br: #f5c2c7;
  --err-tx: #b42318;
  --err-left:#f04438;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 20% -10%, #ffffff 0%, #eef4ff 40%, #eaf1ff 70%, #e8f0ff 100%), var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display:flex; flex-direction:column; min-height:100vh;
}
.brand{
  display:flex; justify-content:center; align-items:center; padding:16px 12px; background:var(--brand);
}
.brand__logo{ display:block; height:auto; max-width:100%; filter: drop-shadow(0 1px 0 rgba(0,0,0,.1));}
.shell{
  flex:1;
  display:flex; align-items:center; justify-content:center;
  padding:20px 16px;
}
.card{
  width: clamp(420px, 94vw, 720px);
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: 0 10px 30px rgba(9,23,50,.12);
  display:flex; flex-direction:column; align-items:center; gap:14px;
}
.card__brand{
  align-self: stretch;
  display:flex; justify-content:center; align-items:center;
  background: var(--brand);
  border-radius: 12px 12px 0 0;
  padding: 12px 10px;
}
.card__logo{ display:block; height:auto; margin-left: 32px; max-width: 260px; width: 100%; filter: drop-shadow(0 1px 0 rgba(0,0,0,.1)); }
.title{
  margin:0 0 6px; font-size:clamp(20px, 2.4vw, 24px); font-weight:800; letter-spacing:.2px; text-align:center;color: #091732;
}
#card-body{
  padding: 22px 18px 24px;
  width: 100%;
}
.info{
  width:100%;
  display:flex; gap:10px; align-items:flex-start; justify-content:center;
  padding:8px 16px; border-radius:8px; border-left:4px solid transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  font-size:clamp(14px, 1.8vw, 16px);
}
.info__icon{
  width:22px; height:22px; min-width:22px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px; margin-top:1px;
}
#aviso-importante{
    margin-top: 20px;
}
.info__text{ margin:0; text-align:center; }
.info--ok{ background:var(--ok-bg); color:var(--ok-tx); border:1px solid var(--ok-br); border-left-color: var(--ok-left); }
.info--ok .info__icon{ background:#d1fae5; color:var(--ok-tx); }
.info--alert{ background:var(--err-bg); color:var(--err-tx); border:1px solid var(--err-br); border-left-color: var(--err-left); }
.info--alert .info__icon{ background:#fee4e2; color:var(--err-tx); }
/* Solo mensaje sin recuadro */
.info--text-only{
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.info--text-only .info__icon{ display: none !important; }
.btn{
  width:100%; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  text-decoration:none; color:#fff; border-radius:12px; padding:14px 16px; font-weight:800;
  font-size:clamp(15px, 2.2vw, 17px); transition: transform .05s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 10px 18px rgba(8,154,173,.25);
}
.btn:active{ transform: translateY(1px); }
.btn--primary{ background: linear-gradient(180deg, var(--zoom1), var(--zoom2)); }
.btn--primary:hover{ filter: brightness(1.03); box-shadow: 0 12px 22px rgba(8,154,173,.28); }
.is-hidden{ display:none !important; }
.tip{ margin:4px 0 0; color:var(--muted); font-size:12px; }
.join-hint{
  margin: 8px 0 4px;
  text-align: center;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .3px;
}
.wa{ width:100%; display:flex; justify-content:center; align-items:center; gap:10px; margin-top:21px; }
.wa__link{
  display:inline-flex; align-items:center; text-decoration:none;
  background: var(--wa); color:#fff; font-weight:800;
  border-radius:8px; padding:6px 14px; gap:10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.wa__bubble{
  width:24px; height:24px; min-width:24px; border-radius:4px;
  background: transparent; display:inline-flex; align-items:center; justify-content:center;
  box-shadow: none; animation: none;
}
.wa__chat{
  position:relative; margin-left:0;
  background:transparent; border:none; color:#ffffff;
  border-radius:0; padding:0; font-weight:700; line-height:1.25;
  box-shadow: none; animation: none; white-space: nowrap;
}
.wa__chat::before,
.wa__chat::after{ display:none; content:none; }
.footer{ text-align:center; padding:16px 10px 24px; color:#8a94a6; font-size:12px; }
.footer a{ color:#ee470d; text-decoration:none; }
.nojs{ background:#fee2e2; color:#7f1d1d; padding:10px 12px; text-align:center; font-weight:700; }
@keyframes bubbleIn{
  0%{ opacity:0; transform: translateY(4px) scale(.98); }
  60%{ opacity:1; transform: translateY(0) scale(1.02); }
  100%{ transform: translateY(0) scale(1); }
}
@keyframes waPulse{ 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.06);} }
@media (prefers-reduced-motion: reduce){
  .wa__bubble{ animation:none; }
  .wa__chat{ animation:none; }
}

/* Mobile enhancements */
@media (max-width: 480px){
  .title{ font-size: clamp(22px, 6vw, 26px); }
  #card-body{ padding: 24px 18px 26px; }
  .info{ font-size: clamp(16px, 4.3vw, 18px); }
  .btn{ padding: 16px 18px; font-size: clamp(16px, 4.5vw, 18px); }
  .card__brand{ padding: 14px 10px; border-radius: 14px; }
  .card__logo{ max-width: 280px; }
  .wa{ margin-top: 22px; }
  .wa__chat{ font-size: 15px; }
}
