:root{
  --txt:#fff;
  --muted: rgba(255,255,255,.78);
  --shadow: 0 20px 50px rgba(0,0,0,.55);
  --green:#25D366;
  --black:#0b0b0b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:var(--txt);
  background: var(--black);
}

.container{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  padding: 28px 16px;
}

.background-image{
  background-image:url("imagenes/fondo.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.overlay{
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 25%, rgba(0,0,0,.30), rgba(0,0,0,.75) 60%, rgba(0,0,0,.88));
}

.content{
  position:relative;
  z-index:2;
  width:min(520px, 92vw);
  text-align:center;
  padding: 28px 18px 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.logo{
  width:min(420px, 86vw);
  height:auto;
  margin: 2px auto 14px;
  display:block;
}

.title{
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.whatsapp-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration:none;
  background: var(--green);
  color:#0b0b0b;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .4px;
  box-shadow: 0 14px 30px rgba(37,211,102,.25);
  transform: translateZ(0);
}

.whatsapp-button:active{ transform: scale(.99); }

.whatsapp-icon{
  width: 22px;
  height: 22px;
}

.subtitle{
  margin: 18px 0 10px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.35;
}

.description{
  margin: 0;
  font-size: 14px;
  opacity: .85;
  letter-spacing: 1px;
}

/* ===== Floating WhatsApp + burbuja ===== */
.wa-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

.wa-float__btn{
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.wa-float__icon{
  width: 28px;
  height: 28px;
}

.wa-bubble{
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 280px;
  border-radius: 14px;
  overflow:hidden;
  background: #111;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: .18s ease;
}

.wa-bubble.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.wa-bubble__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.wa-bubble__title{
  font-weight: 700;
}

.wa-bubble__close{
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  opacity:.9;
}

.wa-bubble__body{
  padding: 12px;
}

.wa-msg{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.wa-msg--bot{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}

.wa-bubble__footer{
  display:flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #0d0d0d;
}

.wa-input{
  flex:1;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: #121212;
  color: #fff;
  padding: 10px 10px;
  outline: none;
}

.wa-send{
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor:pointer;
  background: var(--green);
  color:#0b0b0b;
}

/* ===== Overlay auto redirect ===== */
.wa-redirect-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.wa-redirect-box{
  width: min(340px, 92vw);
  background: #111;
  border-radius: 16px;
  padding: 18px;
  text-align:center;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}

.wa-redirect-spinner{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: var(--green);
  margin: 0 auto 12px;
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.wa-redirect-text{
  color: rgba(255,255,255,.90);
  font-weight: 700;
}
