/* ======================================
   ASSISTANT IA PAGE STYLES
   ====================================== */

/* Hero Section */
.assistant-hero {
  background: linear-gradient(rgba(5, 27, 60, 0.85), rgba(5, 27, 60, 0.9)), url('../img/hero-image.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.assistant-hero-logo {
  max-width: 200px;
  margin: 0 auto 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: #4EAEFF;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin: 0 auto 2rem;
  max-width: 700px;
}

/* Assistant Section */
.assistant-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.assistant-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 850px;
  margin: 0 auto;
}

.assistant-header {
  background: linear-gradient(to right, #0B3954, #1A5F8A);
  color: white;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.assistant-avatar {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.assistant-info h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.assistant-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
}

.assistant-chat {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  height: 350px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fafafa;
}

.message {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.message-content {
  padding: 1rem;
  border-radius: 8px;
  max-width: 80%;
  position: relative;
}

.user-message {
  align-items: flex-end;
}

.user-message .message-content {
  background-color: #dcefff;
  color: #333;
}

.bot-message .message-content {
  background-color: #f0f0f0;
  color: #333;
}

.message-content p {
  margin: 0 0 0.5rem;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.message-content ul li {
  margin-bottom: 0.25rem;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.suggestion-btn {
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-btn:hover {
  background-color: #e0e0e0;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
}

.chat-form input {
  flex-grow: 1;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.chat-form input:focus {
  outline: none;
  border-color: #4EAEFF;
}

.chat-form button {
  background-color: #0B3954;
  color: white;
  border: none;
  border-radius: 8px;
  width: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-form button:hover {
  background-color: #1A5F8A;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0.5rem 1rem;
  background-color: #f0f0f0;
  border-radius: 8px;
  width: fit-content;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background-color: #888;
  border-radius: 50%;
  display: inline-block;
  animation: typingAnimation 1.5s infinite ease-in-out;
}

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

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

@keyframes typingAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Assistant Features */
.assistant-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: #e8f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #0B3954;
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 5rem 2rem;
  background-color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #11D967;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.contact-cta {
  background: linear-gradient(rgba(5, 27, 60, 0.85), rgba(5, 27, 60, 0.9)), url('../img/hero-image.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #ddd;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Media Queries */
@media (max-width: 768px) {
  .assistant-header {
    flex-direction: column;
    text-align: center;
  }

  .assistant-avatar {
    margin: 0 auto;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .assistant-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .assistant-chat {
    padding: 1rem;
  }

  .chat-messages {
    height: 300px;
  }

  .message-content {
    max-width: 90%;
  }

  .suggestions {
    flex-direction: column;
  }
}
