@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap');




#try-demo {
  background: #111;
  border-top: 1px solid #333;
  padding-bottom: 80px;
}

#demoForm .btn {
  background: #f600ff;
  border-radius: 40px;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #fff; /* ← aquí forzamos el color blanco */
  transition: 0.3s;
}

#demoForm .btn:hover {
  background: #c700d1;
  color: #fff; /* asegurar que siga blanco al hacer hover */
}

#demoEmail {
  padding: 10px 15px;
  padding-top: 30px;
  border-radius: 10px;
  border: none;
  margin-right: 10px;
  width: 250px;
  color: #fff; /* color del texto que escribe el usuario */
  background: #222; /* fondo del input */
}

#demoEmail::placeholder {
  color: #ccc; /* color del placeholder, visible sobre fondo oscuro */
  opacity: 1; /* asegurar visibilidad */
}

#demoProblem {
  padding: 10px 15px;           /* Igual que el input de correo */
  border-radius: 10px;          /* Mismo redondeo */
  border: none;                 /* Sin borde */
  margin-top: 10px;             /* Separación del input superior */
  margin-bottom: 10px;          /* Separación del botón inferior */
  width: 100%;                  /* Ocupa todo el ancho del contenedor */
  background: #222;             /* Fondo oscuro como el input */
  color: #fff;                  /* Texto blanco */
  font-size: 1rem;              /* Tamaño de fuente consistente */
  resize: none;                 /* Evita que el usuario cambie el tamaño */
  box-sizing: border-box;       /* Para incluir padding en el ancho total */
}

/* Placeholder visible y consistente */
#demoProblem::placeholder {
  color: #ccc;                  /* Gris claro como el input */
  opacity: 1;                    /* Asegurar visibilidad */
}

.service-info-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100%;
  background: rgba(18, 18, 18, 0.95);
  color: #fff;
  padding: 30px;
  box-shadow: 3px 0 15px rgba(0,0,0,0.5);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-info-panel img {
  width: 100%;
  border-radius: 12px;
}

.service-info-panel h3 {
  margin-top: 15px;
  font-size: 1.3rem;
}

.service-info-panel p {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.4rem;
}

/* Clase que activa el panel */
.service-info-panel.active {
  transform: translateX(0);
  opacity: 1;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
  color: white;
}

body {
  background: #0a0a0a;
  overflow-x: hidden;
}
html {
scroll-behavior: smooth;
}
header {
  width: 100%;
  padding: 25px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
  backdrop-filter: blur(3px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
}

header img {
  height: 45px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

nav a:hover {
  color: #f600ff;
}

.hero {
  padding: 0 10%;
  padding-top: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  box-sizing: content-box;
  background-color: #000000;
}

.hero-content {
  position: relative;
  max-width: 900px;
  z-index: 2;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.3rem;
  opacity: 0.8;
}

@media (max-width: 876px) {
    .hero h1{
        font-size: 1.5rem;
    }
    .hero h2 {
        font-size: 1.0rem;
    }
    
    .hero p {
        font-size: 0.6rem;
    }

}

.btn {
  margin-top: 40px;
  padding: 15px 35px;
  background: #f600ff;
  border-radius: 40px;
  font-size: 1.1rem;
  display: inline-block;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #c700d1;
}

.section {
  padding: 120px 10%;
  text-align: center;
}

.section h2 {
  font-size: 2.6rem;
  margin-bottom: 25px;
}
@media (max-width: 876px) {
  .section h2 {
    font-size: 1.0rem;
  }
}
.services-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.service-box {
  background: #111;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #222;
  transition: 0.3s;
}


.service-box:hover {
  transform: translateY(-10px);
  border-color: #f600ff;
}

footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid #333;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.6;
}















.ai-dev {
  background: #0d0d0d;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.ai-dev-grid {
  background: #111;
  border-radius: 22px;
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
}

.ai-dev-card {
  
  padding: 50px 40px;
  
  transition: transform 0.4s ease, border-color 0.4s ease;
}


.ai-dev-card i {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #f600ff;
}

.ai-dev-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.ai-dev-card p {
  font-size: 1rem;
  opacity: 0.75;
  line-height: 1.5rem;
}









.excelRepresentation {
  padding-bottom: 10px;
  display: flex;
  box-sizing: border-box;
  gap: 40px;
  
}

.excelRepresentationLeft {
display: flex;
align-items: center;
  flex: 1;
}

.excelRepresentationLeft h1 {
  padding-bottom: 5%;
  font-weight: 600;
  text-align: left;
}

.excelRepresentationLeft p {
  padding-top: 5%;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}


.excelRepresentationRight {
    font-family: Segoe UI, sans-serif;
    background: #020617;
    color: white;
    padding: 15px;
    border-radius: 14px;
    width: 50%;
    box-sizing: border-box;
}

@media (max-width: 876px) {
    .excelRepresentation{
        display: inline;
    }
    .excelRepresentationRight {
      width: 100%;
    }
}






.chatRepresentation {
  padding-bottom: 200px;
  height: 840px;
  display: flex;
  box-sizing: border-box;
  gap: 40px;
  
}
.chatRepresentationLeft {
display: flex;
align-items: center;
  flex: 1;
}

.chatRepresentationLeft h1 {
  padding-bottom: 5%;
  font-weight: 600;
  text-align: left;
}

.chatRepresentationLeft p {
  padding-top: 5%;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.chatRepresentationRight {
  width: 420px;
  display: flex;
  align-items: flex-end;
  height: 100%;
}
@media (max-width: 876px) {
    .chatRepresentation{
        display: inline;
    }
    .chatRepresentationRight {
      width: 100%;
    }
}
/* Chat */
.chatRepresentation-chat-container {
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  overflow: hidden;
}




.chatRepresentation-chat-header {
  padding: 16px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatRepresentation-chat-message {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.chatRepresentation-chat-message.bot {
  justify-content: flex-start;
}

.chatRepresentation-chat-message.user {
  justify-content: flex-end;
}

.chatRepresentation-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 70%;
}

.chatRepresentation-bubble.bot {
  background-color: #f1f3f5;
  color: #333;
}

.chatRepresentation-bubble.user {
  background-color: #5b61f6;
  color: #fff;
}

.chat-code {
  background: #f8f8f8;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 14px;
  color: #444;
  border-left: 3px solid #5b61f6;
  margin: 8px 16px 16px;
  border-radius: 8px;
  white-space: pre-wrap;
}

/* chatRepresentation-typing dots */
.chatRepresentation-typing {
  display: inline-block;
  width: 34px;
  text-align: center;
}

.chatRepresentation-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #888;
  border-radius: 50%;
  margin: 0 2px;
  animation: blink 1.4s infinite both;
}

.chatRepresentation-typing span:nth-child(1) { animation-delay: 0s; }
.chatRepresentation-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatRepresentation-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}


.excel-topbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.excel-formula {
    background: #111827;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0.9;
    transition: 0.3s;
}

.excel-status {
    font-size: 12px;
    color: #38bdf8;
}

/* GRID */
.excel-grid-wrapper {
    overflow-x: auto;
}

.excel-grid {
    display: grid;
    grid-template-columns: 40px repeat(6, minmax(90px, 1fr));
    gap: 4px;
    background: #111827;
    padding: 8px;
    border-radius: 12px;
    min-width: 500px;
}

.excel-header {
    background: #020617;
    opacity: 0.7;
    text-align: center;
    padding: 6px;
    font-size: 11px;
}

.excel-cell {
    background: #020617;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

/* ANIMACIONES */
.excel-active {
    outline: 2px solid #22c55e;
    transform: scale(1.05);
}

.glow {
    box-shadow: 0 0 10px #38bdf8;
}

.pulse {
    animation: pulse 0.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* COLORES SEMÁNTICOS */
.ai { background: #38bdf8; color: black; }
.process { background: #22c55e; color: black; }
.warning { background: #ef4444; }
.decision { background: #a78bfa; }
.done { background: #facc15; color: black; }

/* LOG */
.excel-log {
    margin-top: 12px;
    font-size: 12px;
    min-height: 30px;
    opacity: 0.9;
    color: #94a3b8;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .excel-topbar {
        flex-direction: row;
        justify-content: space-between;
    }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}



body{
  margin:0;
  font-family:Arial, sans-serif;
}

#legion-network{
  position: relative;
  width: 100%;
  height: 350px;
  background: #000;
  overflow: hidden;
}

#legion-network canvas{
  position:absolute;
  inset:0;
}

.legion-label{
  position:absolute;
  color:white;
  font-size:16px;
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-50%);
  transition:opacity .4s ease;
  text-align:center;
  text-shadow:0 0 10px rgba(255,255,255,.9);
}

.legion-label div:first-child{
  font-size:22px;
}