:root{
  --gold:#d4af37;
  --lightgold:#f8e287;
  --dark:#000;
  --semi:#111;
  --text:#f5d76e;
}

/* ===============================
   ESTILOS GENERALES
=================================*/

html,body{
  height:100%;
  margin:0;
  font-family:'Poppins',sans-serif;
  background:linear-gradient(to bottom,var(--dark) 70%,#1a0f00);
  color:var(--text);
  text-align:center;
}

/* ===============================
   HEADER / LOGO
=================================*/

header{
  padding:30px 10px 10px;
}
header img{
  width:140px;
  height:auto;
  border-radius:50%;
}
h1{
  font-size:28px;
  color:var(--text);
  letter-spacing:1px;
  margin:6px 0;
}
p{
  color:#f9e9b0;
  margin:6px 0 20px;
}

/* ===============================
   ENLACES REDES
=================================*/

.links a{
  display:block;
  margin:12px auto;
  width:80%;
  max-width:320px;
  text-decoration:none;
  background:linear-gradient(90deg,var(--gold),var(--lightgold));
  color:#000;
  font-weight:700;
  padding:14px;
  border-radius:30px;
  box-shadow:0 0 10px #f8e28766;
  transition:transform .18s ease;
}
.links a:hover{
  transform:scale(1.03);
  box-shadow:0 0 20px #f5d76eaa;
}

/* ===============================
   FOOTER
=================================*/

footer{
  margin-top:40px;
  font-size:13px;
  color:#c8b873;
  padding-bottom:30px;
}

/* ===============================
   BURBUJA DEL CHAT
=================================*/

#chatBubble{
  position:fixed;
  bottom:20px;
  right:20px;
  width:70px;
  height:70px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 15px var(--text);
  cursor:pointer;
  animation:pulse 2s infinite;
  z-index:1000;
  display:flex;
  justify-content:center;
  align-items:center;
}
#chatBubble img{
  width:100%;
  height:100%;
  border-radius:50%;
}

@keyframes pulse{
  0%,100%{ box-shadow:0 0 15px var(--text); }
  50%{ box-shadow:0 0 25px var(--text); }
}

/* ===============================
   CONTENEDOR DEL CHAT
=================================*/

#chatContainer{
  position:fixed;
  bottom:100px;
  right:20px;
  width:360px;
  max-height:580px;
  background:var(--dark);
  border:2px solid var(--gold);
  border-radius:18px;
  box-shadow:0 0 20px #d4af37aa;
  display:none;
  flex-direction:column;
  overflow:hidden;
  z-index:1001;
}

#chatHeader{
  background:var(--gold);
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--dark);
  font-weight:700;
}
#chatHeader img{
  width:50px;
  height:50px;
  border-radius:50%;
}
#closeChat{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
  color:var(--dark);
}

/* ===============================
   IDIOMAS
=================================*/

#langSwitch{
  display:flex;
  gap:8px;
  justify-content:center;
  padding:8px;
  background:var(--semi);
  border-bottom:1px solid rgba(255,255,255,0.02);
}
#langSwitch button{
  padding:6px 10px;
  border-radius:8px;
  border:none;
  cursor:pointer;
  font-weight:700;
}

/* ===============================
   MENSAJES
=================================*/

#chatMessages{
  padding:10px;
  height:350px;
  overflow-y:auto;
  text-align:left;
  background:transparent;
}

.msg{
  padding:10px;
  margin:8px 0;
  border-radius:14px;
  max-width:80%;
  opacity:0;
  transform:translateY(10px);
  transition:all .28s ease;
  word-wrap:break-word;
  display:inline-block;
}
.msg.show{
  opacity:1;
  transform:translateY(0);
}
.bot{
  background:var(--gold);
  color:var(--dark);
  margin-right:auto;
}
.user{
  background:#444;
  color:#fff;
  margin-left:auto;
  display:block;
}

/* ===============================
   "ESCRIBIENDO..."
=================================*/

#typing{
  color:var(--gold);
  font-size:13px;
  padding-left:12px;
  display:none;
}
#dots span{
  animation:blink 1s infinite;
}
#dots span:nth-child(2){
  animation-delay:.2s;
}
#dots span:nth-child(3){
  animation-delay:.4s;
}
@keyframes blink{
  0%,50%,100%{ opacity:0 }
  25%,75%{ opacity:1 }
}

/* ===============================
   INPUT
=================================*/

#chatInputBox{
  display:flex;
  padding:10px;
  background:var(--semi);
  border-top:1px solid rgba(255,255,255,0.02);
}
#chatInput{
  flex:1;
  padding:8px;
  border-radius:10px;
  border:none;
  background:#222;
  color:#fff;
}
#sendBtn{
  margin-left:8px;
  padding:10px 14px;
  border-radius:10px;
  border:none;
  background:var(--gold);
  color:var(--dark);
  cursor:pointer;
  font-weight:700;
}

/* ===============================
   BOTONES RÁPIDOS
=================================*/

.dest-btn{
  background:var(--lightgold);
  border:none;
  border-radius:12px;
  padding:6px 10px;
  margin:4px 3px;
  cursor:pointer;
  font-weight:700;
}
.contact-btn{
  background:#25D366;
  border:none;
  border-radius:12px;
  padding:6px 10px;
  margin:4px 3px;
  color:#fff;
  font-weight:700;
}
.instagram-btn{
  background:#C13584;
  border:none;
  border-radius:12px;
  padding:6px 10px;
  margin:4px 3px;
  color:#fff;
  font-weight:700;
}

/* ===============================
   RESPONSIVE
=================================*/

@media (max-width:420px){
  #chatContainer{
    right:6px;
    left:6px;
    width:auto;
    max-width:calc(100% - 12px);
  }
}