/* ==================== DEMO SECTION (Chat Window) ==================== */
.demo-section {
  padding: var(--section-padding) 2rem;
  background: var(--gray-100);
}

.chat-demo-container {
  max-width: 600px;
  margin: 0 auto;
}

.chat-window {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.chat-header {
  background: var(--gradient-primary);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.chat-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.chat-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

.chat-messages {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.message {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.message.visible {
  opacity: 1;
  transform: translateY(0);
}

.message.bot {
  background: var(--gray-100);
  color: var(--gray-700);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.message.user {
  background: var(--gradient-primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.message p {
  margin: 0;
}

.message ul {
  margin: 0.75rem 0 0 0;
  padding-left: 1.25rem;
}

.message li {
  margin-bottom: 0.5rem;
}

/* ==================== BENEFITS SECTION ==================== */
.benefits-section {
  padding: var(--section-padding) 2rem;
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-content .section-subtitle {
  text-align: left;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefits-list li i {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefits-list li div {
  display: flex;
  flex-direction: column;
}

.benefits-list li strong {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.benefits-list li span {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.benefits-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 968px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .benefits-image {
    order: -1;
  }

  .benefits-content .section-header {
    text-align: center !important;
  }

  .benefits-content .section-subtitle {
    text-align: center;
  }
}

/* ==================== FAQ GRID 2 COLUMNS ==================== */
@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
  padding: var(--section-padding) 2rem;
  background: var(--gray-100);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height 0.3s ease;
}

.faq-item:hover::before {
  height: 100%;
}

.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 82, 204, 0.1);
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  padding-right: 1rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-item h3::before {
  content: "";
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--secondary);
  border-radius: 50%;
  margin-top: 0.5rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0;
  padding-left: 1.5rem;
}

/* Variante con iconos */
.faq-item.with-icon h3::before {
  display: none;
}

.faq-item .faq-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(
    135deg,
    rgba(0, 82, 204, 0.1) 0%,
    rgba(0, 82, 204, 0.05) 100%
  );
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    padding: 1.5rem;
  }

  .faq-item h3 {
    font-size: 1rem;
  }
}

/* Animación escalonada */
.faq-item:nth-child(1) {
  transition-delay: 0.1s;
}
.faq-item:nth-child(2) {
  transition-delay: 0.2s;
}
.faq-item:nth-child(3) {
  transition-delay: 0.3s;
}
.faq-item:nth-child(4) {
  transition-delay: 0.4s;
}
.faq-item:nth-child(5) {
  transition-delay: 0.5s;
}
.faq-item:nth-child(6) {
  transition-delay: 0.6s;
}
