*,
*::before,
*::after {
  box-sizing: border-box;
}

/*  BASE  */

.logo {
    padding: 20px;
    display: flex;
    justify-content: center;
}
.logo img {
    height: 160px;
}
.logo img:hover {
    filter: brightness(0) saturate(100%) invert(73%) sepia(44%) saturate(533%) hue-rotate(106deg);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #020203;
  background-image:
    radial-gradient(4000px 2200px at 50% -60%,
      rgba(255, 255, 255, 0.015) 0%,
      rgba(255, 255, 255, 0.005) 60%,
      transparent 95%
    ),
    linear-gradient(
      180deg,
      #050506 0%,
      #030304 50%,
      #020203 100%
    );
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
}

/*  HEADER  */

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 80%;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-size: 1rem;
  background: #2121212a;
  color: white;
  padding: 12px 16px;
  border: 1px solid #44444438;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 200;
}

.nav-links a:hover {
  border: 1px solid #92F0C7;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

/*  PARTICLES  */


#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/*  HERO  */

.hero {
  position: relative;
  padding: 140px 20px 100px;
  text-align: center;
}

.hero h1 {
  font-size: 4.6rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 400;
}

.hero h1 span {
  background: linear-gradient(90deg, white, #92F0C7);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  font-weight: 100;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background: #2121212a;
  color: white;
  padding: 12px 16px;
  border: 1px solid #44444438;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 200;
}

.btn-primary:hover {
  border: 1px solid #92F0C7;
  box-shadow: 0 0 14px rgba(255,255,255,0.18);
}

/*  TRUSTED  */

.trusted-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 20%,
      black 80%,
      transparent 100%
  );
  mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 20%,
      black 80%,
      transparent 100%
  );
}

.logos-track {
  display: flex;
  animation: scroll 30s linear infinite;
  will-change: transform;
  gap: 80px;
}

.logos {
  display: flex;
  gap: 80px;
}

.logos-track img {
  height: 35px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logos-track img:hover {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(73%) sepia(44%) saturate(533%) hue-rotate(106deg);
}

.trusted-text {
  margin-top: 60px;
  color: #9aa4af;
  font-size: 12px;
}

/* Animación scroll */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/*  WHAT  */


.what-section {
  padding: 40px 20px;
}

.what-container {
  max-width: 1200px;
  margin: 0 auto;
}

.what-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.what-header h2 {
  font-size: 1.8rem;
  font-weight: 400;
}

.what-accent {
  font-size: 26px;
  font-weight: 900;
  color: #92F0C7;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.what-card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #2121212a;
  transition: 0.25s ease;
}

.what-card:hover {
  transform: translateY(-10px);
  border: 1px solid #92F0C7;
  box-shadow: 0 0 14px rgba(255,255,255,0.18);
}

.what-icon {
  width: 42px;
  height: 42px;
}

.what-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #92F0C7;
}

.what-card p {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 200;
  line-height: 1.6;
}

/*  CHAT  */


.chat-section {
  padding: 60px 20px;
}

.chat-wrapper {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.chat-header h2 {
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.chat-header span {
  color: #92F0C7;
  font-weight: 600;
}

.chat-header p {
  opacity: 0.6;
  margin-bottom: 50px;
  font-weight: 200;
}

.chat-container {
  width: 100%;
  height: 620px;
  background: linear-gradient(
    180deg,
    rgba(18,18,24,0.95),
    rgba(10,10,15,0.95)
  );
  border-radius: 28px;
  border: 1px solid rgba(146,240,199,0.15);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  padding: 35px;
  box-shadow: 0 0 40px rgba(146,240,199,0.06);
}

#messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 10px;
}

/* Scroll personalizado */
#messages::-webkit-scrollbar {
  width: 6px;
}

#messages::-webkit-scrollbar-thumb {
  background: rgba(146,240,199,0.4);
  border-radius: 20px;
}

.message {
  padding: 16px 22px;
  border-radius: 20px;
  max-width: 70%;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.user {
  background: #92F0C7;
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  text-align: right;
  font-weight: 400;
}

.bot {
  background: rgba(255,255,255,0.06);
  color: #eaeaea;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  text-align: left;
  font-weight: 200;
}

/* Typing */
.typing {
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 14px 20px;
  display: flex;
  gap: 6px;
  width: fit-content;
}

.typing span {
  width: 8px;
  height: 8px;
  background: #92F0C7;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.typing span:nth-child(2){animation-delay:.2s}
.typing span:nth-child(3){animation-delay:.4s}

@keyframes bounce {
  0%,80%,100%{transform:scale(.6);opacity:.4}
  40%{transform:scale(1);opacity:1}
}

/* Input */
.chat-input {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.chat-input input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #eaeaea;
  font-size: 14px;
}

.chat-input input:focus {
  outline: none;
  border: 1px solid rgba(146,240,199,0.7);
}

.chat-input button {
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(146,240,231,0.4);
  background: rgba(255,255,255,0.05);
  color: #92F0C7;
  cursor: pointer;
}

.chat-input button:hover {
  background: rgba(146,240,199,0.18);
  border-color: #92F0C7;
}

/*  FOOTER  */

.footer {
  padding: 80px 20px 60px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0px;
}

.footer-note {
  font-size: 12px;
  opacity: 0.5;
  max-width: 700px;
  margin: 0 auto;
}

/*  RESPONSIVE  */


@media (max-width: 1024px) {
  header { position: relative; }
  .hero h1 { font-size: 3rem; }
  .what-grid { grid-template-columns: repeat(2,1fr); }
  .chat-container { height: min(600px,75vh); }
}

@media (max-width: 768px) {
  header { position: relative; }
  .navbar { flex-direction: column; gap: 15px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1rem; }
  .what-grid { grid-template-columns: 1fr; }
  .chat-container { height: 75vh; padding: 18px; border-radius: 18px; }
  .message { max-width: 90%; font-size: 13px; }
  .chat-input input { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .chat-container { height: 70vh; }
  .footer-links { flex-wrap: wrap; }
}