/* ========== ESTILOS DEL MENÚ DE NAVEGACIÓN ========== */
.navbar {
  background-color: #1a1f26;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4dabf7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Estilo específico para la imagen del logo DENTRO de la barra de navegación */
.nav-logo .logo-image {
  height: 40px;
  width: auto;
  margin-top: 0; /* Anula el margin-top general de las imágenes */
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #f0f2f5;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #69b8ff;
}


/* Estilos generales para toda la página */
body {
  font-family: 'Poppins', sans-serif;
  color: #f0f2f5;
  background-color: #0d1218;
  margin: 0;
  padding: 0;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    padding-bottom: 150px;
}

.page-content {
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 150px;
}


/* ========== ESTILOS PÁGINA DE ATERRIZAJE (INDEX) ========== */

/* Contenedor que centra el video horizontalmente */
.video-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

/* Estilo del video centrado */
.logo-video {
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
}

.logo {
  width: 150px;
  margin-bottom: 20px;
}

h1 {
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
}

h2 {
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
}

h3 {
    font-weight: 600;
    color: #4dabf7;
    text-align: center;
    line-height: 1.2;
}


p {
  max-width: 600px;
  margin: 15px auto;
  line-height: 1.6;
  text-align: center;
}

.intro {
    max-width: 700px;
    margin: 20px auto;
    font-size: 1.2em;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-button {
    text-decoration: none;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.primary { background-color: #4dabf7; color: #0d1218; }
.secondary { background-color: #1a1f26; color: #4dabf7; border: 2px solid #4dabf7; }

img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-top: 20px;
  max-width: 100%;
}

a { color: #ff8a80; text-decoration: none; }
a:hover { text-decoration: underline; }


/* ESTILOS PÁGINAS INTERNAS */
.hero-section {
    padding: 4rem 1rem;
    background-color: #1a1f26;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero-section h1 { font-size: 2.8rem; margin-bottom: 1rem; }

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 650px;
}

#services {
    margin-top: 3rem;
}

#services h2 { font-size: 2.2rem; color: #f0f2f5; margin-bottom: 2rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #1a1f26;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #f0f2f5;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 { color: #4dabf7; margin-bottom: 0.5rem; }


/* ESTILOS DEMOS DE CHATBOTS */
#demos {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #1a1f26;
    border-radius: 15px;
}

#demos h2 { font-size: 2.2rem; color: #f0f2f5; margin-bottom: 1rem; }

.bot-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.bot-button {
    background-color: #333;
    color: #f0f2f5;
    border: 2px solid #555;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bot-button:hover { background-color: #444; border-color: #4dabf7; }

.bot-button.active {
    background-color: #4dabf7;
    color: #0d1218;
    border-color: #4dabf7;
}


/* ESTILOS DEL CHAT DE IA */
#chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
#chat-box { width: 350px; max-width: 90vw; background-color: #212121; color: #ffffff; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; font-family: Arial, sans-serif; transition: all 0.3s ease-in-out; margin-bottom: 10px; }
#chat-box.hidden { display: none; }
#chat-toggle-button { background-color: #4dabf7; color: #0d1218; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); transition: all 0.2s ease-in-out; float: right; }
#chat-toggle-button:hover { transform: scale(1.1); }
#chat-header { background-color: #4dabf7; color: #0d1218; padding: 15px; font-size: 18px; font-weight: bold; text-align: left; }
#chat-messages { flex-grow: 1; padding: 15px; height: 300px; overflow-y: auto; display: flex; flex-direction: column; column-gap: 10px; }
.message, .user-message, .ai-message { padding: 10px 15px; border-radius: 18px; max-width: 80%; line-height: 1.4; }
.user-message { background-color: #69b8ff; color: #0d1218; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-message { background-color: #333; color: #f0f2f5; align-self: flex-start; border-bottom-left-radius: 4px; }
#chat-input-container { display: flex; border-top: 1px solid #444; padding: 10px; }
#chat-input { flex-grow: 1; border: 1px solid #555; background-color: #333; color: white; border-radius: 20px; padding: 10px 15px; font-size: 14px; outline: none; }
#send-button { background-color: #4dabf7; color: #0d1218; border: none; border-radius: 50%; width: 40px; height: 40px; margin-left: 10px; cursor: pointer; font-weight: bold; }