html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#messages {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  font-size: 14px;
  background-color: #d2f3ff;
  padding-top: 1rem;
}

p {
  width: fit-content;
  padding: 10px 20px;
  border-radius: 30px;
}

p.bot {
  background-color: var(--darkBlue);
  justify-content: start;
  align-self: flex-start;
  color: white;
  margin-left: 10px;
}

.mensaje {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 10px;
}

.mensaje svg {
  fill: var(--darkBlue) !important;
}

p.candidato {
  background-color: #d0ffbd;
  align-self: flex-end;
  margin-right: 10px;
}

.botones {
  padding: 10px;
  background-color: white;
  border-radius: 0px 0px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  justify-content: end;
}

#chatbox {
  width: 55%;
  height: 70%;
  border: 1px solid #ccc;
  font-family: Arial;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
}

input {
  width: 100%;
}

button {
  background-color: transparent;
  border: 0px;
  padding: 0px;
  margin: 0px;
  width: fit-content;
}

button svg {
  padding: 10px;
  background-color: var(--darkBlue);
  color: white;
  border-radius: 10px;
}

button svg:hover {
  cursor: pointer;
  scale: 1.1;
}

input {
  padding: 10px;
  border-radius: 10px;
  border-color: lightgray;
}

p {
  margin: 5px 0;
}

a {
  color: white;
}

.franja {
  width: 100%;
  height: 10rem;
  background-color: var(--darkBlue);
  border-radius: 20px 20px 0px 0px;
  position: relative;
}

.franja img {
  width: 19rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.container {
  background-image: url("../Img/download.gif");
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 👇 CAPA DE DESENFOQUE */
.container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  transform: scale(1.1); /* evita bordes feos */
  z-index: 0;
}

/* 👇 CONTENIDO POR ENCIMA */
.container > * {
  position: relative;
  z-index: 1;
}

.opciones button,
#killer_next_btn button {
  background: #ffffff;
  border: 2px solid var(--darkBlue);
  color: var(--darkBlue);
  padding: 10px 14px;
  margin: 5px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.opciones button:hover,
#killer_next_btn button:hover {
  background: var(--darkBlue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(47, 128, 237, 0.3);
}

.opciones button:active,
#killer_next_btn button:active {
  transform: scale(0.97);
}

/* =========================
   ✍️ TYPING ANIMATION
========================= */

.typing {
  display: flex;
  gap: 5px;
  padding: 10px;
  background: #f1f1f1;
  border-radius: 10px;
  width: fit-content;
  margin-left: 30px;
}

.typing span {
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.imagenBot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid black;
  background-color: white;
}

button:hover{
  cursor: pointer;
}

.opciones:has(input[type="file"]){
  display: flex;
  flex-direction: column;
}

input[type="file"]{
  padding: 20px 0px 20px 10px !important;
  max-width: 70%;
}

/* .bot a {
  margin: 0;
  padding: 0;
  display: block;
  text-decoration: none;
  color: transparent;
  height: fit-content;
  width: fit-content;
  line-height: 0;
} */

.bot img {
  max-width: 10rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  #chatbox {
    width: 80%;
    height: 70%;
  }
  .mensaje {
    margin: 0rem 1rem;
  }
}

@media (max-width: 600px) {
  #chatbox {
    width: 100%;
    height: 100%;
    border-radius: 0px;
  }
  .franja,
  .botones {
    border-radius: 0px;
  }
}
