/* ========================================
   FIN CONVERSATION - ESTILOS PARA OPCIONES
   ======================================== */

.fin-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border-radius: 12px;
}

.fin-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.fin-option-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #0e2a47 0%, #103155 100%);
  transition: width 0.3s ease;
  z-index: 0;
}

.fin-option-btn:hover {
  border-color: #0e2a47;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.fin-option-btn:hover::before {
  width: 4px;
}

.fin-option-btn:active {
  transform: translateX(2px) scale(0.98);
}

.option-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0e2a47 0%, #103155 100%);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

.option-text {
  flex: 1;
  z-index: 1;
}

.fin-option-btn i {
  color: #0e2a47;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 1;
}

.fin-option-btn:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* Animación de entrada */
.fin-option-btn {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInOption 0.4s ease forwards;
}

.fin-option-btn:nth-child(1) { animation-delay: 0.1s; }
.fin-option-btn:nth-child(2) { animation-delay: 0.2s; }
.fin-option-btn:nth-child(3) { animation-delay: 0.3s; }
.fin-option-btn:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInOption {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado seleccionado */
.fin-option-btn.selected {
  background: linear-gradient(135deg, #0e2a47 0%, #103155 100%);
  border-color: #0e2a47;
  color: white;
}

.fin-option-btn.selected .option-number {
  background: white;
  color: #0e2a47;
}

.fin-option-btn.selected i {
  opacity: 1;
  color: white;
}

/* Sugerencias rápidas (chips pequeños) */
.fin-quick-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fin-quick-chip {
  padding: 8px 16px;
  background: white;
  border: 1.5px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #0e2a47;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fin-quick-chip:hover {
  background: linear-gradient(135deg, #0e2a47 0%, #103155 100%);
  color: white;
  border-color: #0e2a47;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Mensaje de Fin con opciones */
.fin-message-with-options {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.fin-message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fin-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e2a47 0%, #103155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fin-avatar-small img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.fin-message-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

/* Indicador de escritura */
.fin-typing-indicator {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-radius: 20px;
  width: fit-content;
}

.fin-typing-dot {
  width: 8px;
  height: 8px;
  background: #0e2a47;
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}

.fin-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.fin-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Confirmación de acción */
.fin-action-confirmation {
  padding: 16px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(56, 142, 60, 0.1));
  border-left: 4px solid #4CAF50;
  border-radius: 8px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInConfirmation 0.4s ease;
}

@keyframes slideInConfirmation {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fin-action-confirmation i {
  font-size: 24px;
  color: #4CAF50;
}

.fin-action-confirmation-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #2E7D32;
}

/* Responsive */
@media (max-width: 768px) {
  .fin-option-btn {
    padding: 12px 14px;
    font-size: 14px;
  }

  .option-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .fin-options-container {
    padding: 12px;
  }

  .fin-message-with-options {
    padding: 16px;
  }
}
