/* A little custom style to ensure smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for the sticky header */
}

/* MODIFICACIÓN: Se eliminaron las reglas .no-scrollbar que ocultaban la barra */

/* Style for the active navigation link */
.nav-active {
  color: #d12421;
  font-weight: 600;
}

/* --- Cards Grid Styles --- */
#cards {
  display: grid;
  gap: 2rem;
}

/* Estilos para las tarjetas con flex */
#cards > div > div {
  display: flex;
  flex-direction: column;
}

#cards > div > div > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#cards .mt-2 {
  margin-top: auto;
}

@media (min-width: 768px) {
  #cards {
    grid-template-columns: repeat(3, 1fr);
  }

  #cards > div:nth-child(4),
  #cards > div:nth-child(5) {
    margin-top: 3rem;
  }

  #cards > div:nth-child(4) {
    grid-column: 1;
  }

  #cards > div:nth-child(5) {
    grid-column: 2;
  }
}

/* --- Chat Styles --- */
.chat-bubble {
  border-radius: 1.25rem;
  padding: 0.75rem 1.25rem;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-bubble-user {
  background-color: #003a6f;
  color: white;
  align-self: flex-end;
}

.chat-bubble-bot {
  background-color: #f3f4f6;
  color: #1f2937;
  align-self: flex-start;
}

.chat-bubble-bot p {
  margin-bottom: 0.5rem;
}

.chat-bubble-bot p:last-child {
  margin-bottom: 0;
}

.chat-bubble-bot ul {
  margin-left: 1.25rem;
  list-style-type: disc;
}

.typing-indicator {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #9ca3af;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

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

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

/* Chat modal transition */
#chat-modal.hidden {
  display: none;
}

#chat-modal {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#chat-modal.active {
  opacity: 1;
}

#chat-container {
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

#chat-modal.active #chat-container {
  transform: translateY(0);
}

